Source Code:
(back to article)
list1 = [1, 2, 3] list2 = [4, 5, 6] new_list = list1.copy() new_list.extend(list2) print(new_list) # Output: [1, 2, 3, 4, 5, 6]
Result:
Report an issue