According to the documentation, a container that needs to be iterable should supply an __iter__() function to return an iterator. The iterator itself is required to
__iter__()