scheyennekreger
scheyennekreger
20.09.2021 • 
Engineering

1. Create an empty list named grades. a) Add the following grades: 92, 51, 83, 37, 72
b) Compute the average of these grades.
Use the len method in your calculation.
c) Print the average with a precision of two decimal places.
d) Compute the location of the median grade using the len method.
e) Print the median grade using index syntax.
(this simply means that you are to reference the element using
index notation as we used in our many examples)
f) Remove all failing grades (lower then 60) from the list.
g) Print the updated list of grades.
h) Print the updated average.
Average = the sum of all elements divided by the number of elements
Median = the middle element in a list of elements

Solved
Show answers

Ask an AI advisor a question