list1 = [1, 2, 3]list2 = [4, 5, 6] list1.extend(list2)print("Joined using .extend():", list1)# Output: [1, 2, 3, 4, 5, 6]
Standard input is empty
Joined using .extend(): [1, 2, 3, 4, 5, 6]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!