Question: Using Python: - Use Map and Reduce function: Count the number of even and odd numbers from the list: [35, 45, 46, 30, 30, 30,
Using Python:
- Use Map and Reduce function:
Count the number of even and odd numbers from the list: [35, 45, 46, 30, 30, 30, 34, 23, 38, 43, 48, 26, 13, 46, 10, 20, 37, 34, 39, 21]
1. Use Map function without lambda functions
2. Use Reduce function without lambda functions
3. Use Map function with lambda functions
4. Use Reduce function with lambda functions
Please include 4 different codes that show the number of even and odd numbers from the list from the criteria above.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
