data1 = [1, 2, 3] data2 = [4, 5, 6] data = data1 + data2 print(data) # output : [1, 2, 3, 4, 5, 6]
>>> t1 = ['a', 'b', 'c'] >>> t2 = ['d', 'e'] >>> t1.extend(t2) >>> print(t1) ['a', 'b', 'c', 'd', 'e']