1# mapping function
2def uppercase(u):
3 return str(u.upper())
4
5map_iterator = map(uppercase,['a','b','c'])
6mylist = list(map_iterator)
7print(mylist)
1# Add two lists using map and lambda
2
3numbers1 = [1, 2, 3]
4numbers2 = [4, 5, 6]
5
6result = map(lambda x, y: x + y, numbers1, numbers2,axis=1)
7print(list(result))
8