fork download
  1. def mutate(x):
  2. x[0] = 'foo'
  3.  
  4. lst = ['bar']
  5. mutate(lst)
  6. print lst
  7.  
Success #stdin #stdout 0.01s 7728KB
stdin
Standard input is empty
stdout
['foo']