fork download
  1.  
  2.  
  3. a = [1,2]
  4.  
  5. def f(lst):
  6. lst += [3]
  7. f(a)
  8. print(a)
Success #stdin #stdout 0.04s 9596KB
stdin
Standard input is empty
stdout
[1, 2, 3]