Write a
Python program to accept two lists and merge the two lists into list of tuple.
list2
= ['a', 'b', 'c']
def merge(list1, list2):
merged_list = [(list1[i], list2[i]) for i in range(0, len(list1))]
return
merged_list
# Driver code
list1
= [1, 2, 3]
list2
= ['a', 'b', 'c']
print(merge(list1,
list2))
Method 3:-
a=[]
c=[]
n1=int(input("Enter
number of elements:"))
for
i in range(1,n1+1):
b=int(input("Enter
element:"))
a.append(b)
n2=int(input("Enter number of elements:"))
for
i in range(1,n2+1):
d=int(input("Enter
element:"))
c.append(d)
print(new_list)