fork download
  1. def print_msg(i):
  2. return i
  3. list=[]
  4. for i in range (0,6):
  5. list.append(print_msg(i))
  6. print(list)
Success #stdin #stdout 0.09s 14092KB
stdin
Standard input is empty
stdout
[0, 1, 2, 3, 4, 5]