Question
Design a python program to get multiple test scores for a student and store the scores in a list , drop the lowest score from
Design a python program to get multiple test scores for a student and store the scores in a list, drop the lowest score from the list, and calculate the average score.
The program should have the following functions:
The get_scores function first asks how many test scores the user wants to enter, and then takes the input and stores the scores in a list. The function returns the list of scores.
The calculate_average function takes a score list as the parameter, drops the lowest score from the list, and calculates the average score. The function returns the average score.
The show_results function displays the average score.
The main function of the program call the above functions.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started