You can use Python concatenate operator (+) to concatenate two lists in Python as shown in the below example –
1 2 3 4 5 6 7 8 |
list1 = [1,2,3,4] list2 = [5,6,7,8] ## Concatenate two list into one list3 = list1 + list2 print(list3) ## Returns [1, 2, 3, 4, 5, 6, 7, 8] |