Question: In Python 3 - Write a program that reads a sequence of integer inputs from the user. When the user is finished entering the integers,
In Python 3 -
Write a program that reads a sequence of integer inputs from the user. When the user is finished entering the integers, they will enter a 'q'. There is no need to check if the entry is a valid integer. All integers in the test data (input) will be between -255 and 255. The program should then print: The smallest and largest of the inputs. The number of even and odd inputs (0 should be considered even) Cumulative totals. For example, if the input is 1 7 2 9, the program should print 1 8 10 19. It needs to match the format of the sample output.
Sample Output -
Enter an integer: 10
Enter an integer: 1
Enter an integer: 0
Enter an integer: 3
Enter an integer: 5
Enter an integer: q
The smallest number is 0
The largest number is 10
There are 5 numbers, 2 even and 3 odd
Totals: 10 11 11 14 19
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
