Write a program that creates a third list after adding two lists
Answers
Answered by
1
Explanation:
Join Two Lists
Join two list: list1 = ["a", "b" , "c"] list2 = [1, 2, 3] list3 = list1 + list2. print(list3) ...
Append list2 into list1: list1 = ["a", "b" , "c"] list2 = [1, 2, 3] for x in list2: list1.append(x) ...
Use the extend() method to add list2 at the end of list1: list1 = ["a", "b" , "c"] list2 = [1, 2, 3] list1.extend(list2)
Answered by
0
Answer:
ohhhhhhhhhhhhhhhhhbbhbhhhhhhh
Similar questions