fork download
  1. foo = [1, 2, 3]
  2. foo.append([4, 5])
  3. print foo
  4.  
  5. foo = [1, 2, 3]
  6. foo.extend([4, 5])
  7. print foo
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
[1, 2, 3, [4, 5]]
[1, 2, 3, 4, 5]