Question: Write a Python program that reads in a list of integers and displays the following: a) The average of the numbers in the list b)
Write a Python program that reads in a list of integers and displays the following:
a) The average of the numbers in the list
b) The median value of the numbers
c) The number of even numbers in the list
Sample runs are shown below:
Enter a list of integers: [12, 23, 32, 14, 18]
The average of numbers in the list is: 19.8
The median of the numbers in the list is: 18
The number of even numbers in the list is: 4
Enter a list of integers: [10, 20, 15, 25, 60, 45]
The average of numbers in the list is: 29.166666666666668
The median of the numbers in the list is: 22.5
The number of even numbers in the list is: 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
