Tag: iterators in python
Difference between iterables and iterators in Python
Naveen
- 0
Iterables iterables is an object over which we can iterate using loops. In other words, any object over which we can perform iteration and access it’s elements one by one is known as iterable. objects such as lists, tuples, sets, strings, dictionaries are called iterables. iterables support iter() function. Iterators iterator is generated when the…
Read More