Map() function :- map() function in python used to perform operations on a given number of iterable sequence like list, set, tuple etc. map() function takes a function as an one argument and a iterable sequence as a second argument. map(func, iter) func:- This is a function on which map function passes each element of given iterator. iter:- This is a iterable sequence like lists, sets, tuples etc. map() function returns a map object. so you have to change the type of result to list or tuple as per your requirement.…
