1list1 = [1, 2, 3]
2list2 = [4, 5, 6]
3
4# `zipped_lists` contains pairs of items from both lists.
5# Create a list with the sum of each pair.
6sum = [x + y for (x, y) in zip(list1, list2)]
7
8print(sum)
9# [5, 7, 9]
1list1 = ["a", "b" , "c"]
2list2 = [1, 2, 3]
3
4list1.extend(list2)
5print(list1)
6
1list1 = [1, 2, 3]
2list2 = [4, 5, 6]
3sum_list = []
4
5for (item1, item2) in zip(list1, list2):
6 sum_list.append(item1 + item2)
7
8print(sum_list)
1listone = [1,2,3]
2listtwo = [4,5,6]
3mergedlist = []
4mergedlist.extend(listone)
5mergedlist.extend(listtwo)