t191.py 91 B

12345
  1. def f():
  2. for i in 1,2,3,4,5:
  3. if i == 3: break
  4. yield i
  5. print list(f())