It executes a specified function for each item in a given iterable (list,tuple etc) and returns a map of an object….