xxxxxxxxxx
# mapping function
def uppercase(u):
return str(u.upper())
map_iterator = map(uppercase,['a','b','c'])
mylist = list(map_iterator)
print(mylist)
xxxxxxxxxx
map() is a higher-order built-in function that takes a function and iterable as inputs,
and returns an iterator that applies the function to each element of the iterable.