fork download
  1. list = [1, 2, 3, 4]
  2.  
  3. for t in range(0, 10):
  4. for x in list:
  5. if x > 0:
  6. x -= 1
  7. print(list)
Success #stdin #stdout 0.02s 5744KB
stdin
Standard input is empty
stdout
[1, 2, 3, 4]
[1, 2, 3, 4]
[1, 2, 3, 4]
[1, 2, 3, 4]
[1, 2, 3, 4]
[1, 2, 3, 4]
[1, 2, 3, 4]
[1, 2, 3, 4]
[1, 2, 3, 4]
[1, 2, 3, 4]