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. o = odd()
  10. next(o)
Success #stdin #stdout 0.1s 14164KB
stdin
Standard input is empty
stdout
step 1