fork download
  1. def odd():
  2. print('step 1')
  3. yield 1
  4. print('step 2')
  5. yield(3)
  6. print('step 3')
  7. yield(5)
  8.  
  9. g = odd()
  10. next(g)
Success #stdin #stdout 0.13s 14084KB
stdin
Standard input is empty
stdout
step 1