The average test grade can be found by dividing the sum of the grades by the total number of grades.
Luckily, we just created an awesome function,
grades_sum to compute the sum.
Define a function,
grades_average, below the
grades_sum function that does the following:
- Has one argument,
grades_input, a list
- Computes the average of the grades by dividing that sum by
- Returns the average.
Call the newly created
grades_average function with the list of
grades and print the result.