def f(): def a(): yield 1 for i in range(4): a() g = f()print(list(g))
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 9, in <module> TypeError: 'NoneType' object is not iterable
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!