An iterator is an object which implements the iterator protocol, which consist of the methods __iter__() and __next__(). code example
Example: python iterator
pies = ["cherry", "apple", "pumpkin", "pecan"]
iterator = iter(pies)
print(next(iterator))
#prints "cherry" because it's the current one being iterated over