example (iiifirstlets perform the iteration manuallyiterable myiterable([ , , ]iterator iter(iterableor use iterable __iter__(trywhile trueitem iterator next(print item except stopiterationpass print "iteration done more elegant solution is to use the python for-loopfor item in iterableprint item print "iteration done in fact python lists are already iterablesfor item in [ , , ]print item