PY
py
1
2
3
4
5
6
7
8
9
a=[1,2,3]
b=[4,5,6]
#The above 2 lists are used.
res=map(lambda x,y: x+y, a,b)
#The map () function passee each item of the iterable through its function.
#The lambda () function is an anonymous function.
print(res)
#To display the result in list manner we write.
print (list(res))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run