Python Iterators

Iterator in python is an object that is used to iterate over iterable objects like lists, tuples, dicts, and sets.

Code :