t192.py 91 B

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