fork download
  1. def add_end(L=[]):
  2. L.append('END')
  3. return L
  4.  
  5. print(add_end([1,2,3]))
Success #stdin #stdout 0.1s 14200KB
stdin
Standard input is empty
stdout
[1, 2, 3, 'END']