example (iidef next(self)if self _position len(self _my_iterable items)value self _my_iterable items[self _positionself _position + return value elseraise stopiteration(in python iterators also support iter by returning self def __iter__(self)return self