fork(1) download
  1. def f():
  2. def a():
  3. yield 1
  4.  
  5. for i in range(4):
  6. a()
  7.  
  8. g = f()
  9. print(list(g))
Runtime error #stdin #stdout #stderr 0.1s 23568KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 9, in <module>
TypeError: 'NoneType' object is not iterable