fork download
foo = [1, 2, 3]
foo.append([4, 5])
print foo

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