t189.py 124 B

12345678910
  1. def f(n):
  2. yield 1
  3. a, b = n, n + 1
  4. yield 2
  5. yield a
  6. yield b
  7. a = 9999
  8. b = 9999
  9. for i in f(20):
  10. print i