demo_iterator2.py:
➜ begtut>python demo_iterator2.py
b
a
n
a
n
a