Q:

Write a Python program to Zip two given lists of lists

0

Write a Python program to Zip two given lists of lists.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

list1 = [[1, 3], [5, 7], [9, 11]] 
list2 = [[2, 4], [6, 8], [10, 12, 14]]   
print("Original lists:")
print(list1)
print(list2)
result = list(map(list.__add__, list1, list2)) 
print("\nZipped list:\n" +  str(result))

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now