Question: In Python Programming: (13 points) Write an application NumberCount.py that asks user to enter two numbers, n1 and n2, then generates 40 random numbers in
(13 points) Write an application NumberCount.py that asks user to enter two numbers, n1 and n2, then generates 40 random numbers in between n1 and n2 inclusive. Count how many odd numbers and how many even numbers generated. Print out the numbers (15 per line) and the odd/even counts. Sample output: Enter two numbers (separated by comma): 80,10 The 40 randomly generated numbers in between 10 and 80 are: 55 33 14 18 36 67 36 67 44 80 21 29 60 17 21 11 25 74 12 64 42 44 31 52 11 58 22 16 67 21 1. 42 27 71 79 12 64 76 10 55 14 Count of odd numbers is: 18 Count of even numbers is: 22
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
