Files
Python-for-Geeks/Chapter06/lambda/lambda3.py
T
2021-08-13 11:44:51 +05:30

7 lines
189 B
Python

# lambda3.py to get product of corresponding item in the two lists
mylist1 = [1, 2, 3, 4, 5]
mylist2 = [6, 7, 8, 9]
new_list = list(map(lambda x,y: x*y, mylist1, mylist2))
print(new_list)