Question: For python Count the number of even and odd numbers from a list. Example input: [ 3 5 , 4 5 , 4 6 ,

For python Count the number of even and odd numbers from a list.
Example input:
[35,45,46,30,30,30,34,23,38,43,48,26,13,46,10,20,37,34,39,21]
Expected Output:
{even: 12, odd: 8}
N.B: Implement without and with lambda functions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!