Iterators and iterables in Python Programming Language

In this tutorial we will learn about iterables and iterators in detail.Everything we can loop over is called as iterables like list tuples strings sets and dictionaries.And iterables will give iterators . An iterator is an object that implements next. next is expected to return the next element of the iterable object that returned it, and raise a StopIteration exception when no more elements are available.



Watch this tutorial to learn about iterators and Iterables