fork download
  1. def f():
  2. def a(i):
  3. yield i
  4.  
  5. for i in range(4):
  6. yield from a(i)
  7.  
  8. g = f()
  9. print(list(g))
Success #stdin #stdout 0.02s 9108KB
stdin
Standard input is empty
stdout
[0, 1, 2, 3]