11.9 Join Lists
Join Two Lists There are several ways to join, or concatenate, two or more lists in Python. One of the easiest ways are by using the + operator. Example Join two list:list1 = [“a”, “b”, “c”]list2 = [1, 2, 3]list3 = list1 + list2print(list3) Output:[‘a’, ‘b’, ‘c’, 1, 2, 3] Another way to join two lists is by appending all the… Read More »