Question: Create a Python program that uses Map-Reduce to analyze a data set. You must use map, filter, and reduce functions. Details: Use a data set
Create a Python program that uses Map-Reduce to analyze a data set. You must use map, filter, and reduce functions. Details:
Use a data set that consists of the numbers from 1 to 10.
Apply a map function to the data set that will divide the value by 2 if it is even or multiply by 3 if it is odd. Print the result after the map function is applied.
Apply a filter function that will keep the value if it is between 5 and 20 inclusive. Print the result after the filter function is applied.
Apply a reduce function that will add the two values if the first value is greater than the second otherwise it will multiply them. Print the result after reduce function is applied.

Sample Output dno dname hours numemp pno P4 pname Maimtenance nsultingz Budget P3 P1 D3 Accounting 462 2 D1 Management 36
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
