fork download
  1. def foo(s = []):
  2. print(s)
  3. s += [1]
  4.  
  5. foo()
  6. foo()
  7. foo()
  8.  
Success #stdin #stdout 0.02s 8736KB
stdin
Standard input is empty
stdout
[]
[1]
[1, 1]