Despite reading up on it, I still dont quite understand how __iter__ works. What would be a simple explaination?
__iter__
I\'ve seen def__iter__(self): retu
def__iter__(self): retu
A class supporting the __iter__ method will return an iterator object instance: an object supporting the next() method. This object will be usuable in the statements "for" and "in".