Question: In python: A final quiz score is computed by adding all the scores, except the lowest two. For example, if the scores are 8, 4,

In python: A final quiz score is computed by adding all the scores, except the lowest two. For example, if the scores are 8, 4, 7, 8.5, 9.5, 7, 5, and 10, the final score is 50. Write a function sumScores that receives a list as an input argument. The function should return the sum of all scores, except the lowest two. If the list has more than two lowest scores (see example), all those values should not be added to the sum. If the list has two or less elements, then the function should return the value 0. Note: The function should return the desired output regardless of the input list size. Here's an example of a function call: >>> print (sumScores([8, 4, 7, 8.5, 9.5, 7, 5, 10])) 50

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!