t456.py 101 B

12345678910
  1. ctr = 0
  2. def f():
  3. global ctr
  4. ctr += 1
  5. return ctr
  6. lst = range(4)
  7. lst[f()] += 3
  8. print lst