sentence: an example of a python generator returning an iterator for the fibonacci number using python 's yield statement follows : def fibonacci ( ) : a , b = 0 , 1 while true : yield a a , b = b , a + b for number in fibonacci ( ) : # the generator constructs an iterator print ( number ) implicit iterators some object-oriented languages such as c# , c++ ( later versions ) , delphi ( later versions ) , go , java ( later versions ) , lua , perl , python , ruby provide an intrinsic way of iterating through the elements of a container object without the introduction of an explicit iterator object .