Map and Reduce are two powerful methods of Python that is used to solve big logical problems, suppose you have to calculate how many routers are making error in network. So write a single function and map it with list of files. The Reducer will then count the total number of routers.
#import Library for Reducer
from _functools import reduce
#Created a list for numbers for experiment
#Defined a function that will map on a list of numbers
#Use of Mapper
#Use of Reducer