t179.py 118 B

123456789
  1. def f(n):
  2. i = 0
  3. while i < n:
  4. yield i
  5. yield i * 10
  6. i += 1
  7. for i in f(10):
  8. print i