A Python Object used to implement a Iterator Method with a given method to iterate to the next element. Can only create iterators of Python Iterable objects.
Class Definition
class Iterable():
def __iter__(self):
pass
def __next__(self):
passCreating Iterator
mylist = ["Bob", "Joe", "Carl"]
myiterator = iter(mylist)