I have a dictionary with the scores for hw, qz, exams and projects. I had to create a function that would calculate the total grade given a dictionary containing the grades. My issue is that we have to drop the lowest quiz grade.I know how to just remove the lowest value in the 'qz' key but if I do that, it is still going to be divided by the total amount of points for quizzes. My question is how would I drop the lowest quiz score so that it changes the total amount of points the quizzes are worth.
Grades = {'hw':[16,27,25], 'qz':[8,10,5], 'ex':[83,93], 'pr':[18,15]}
def Grade_Calculation():
One = sum(Grades['hw'])/90 * .25
Two = sum(Grades['qz'])/30 * .25
Three = sum(Grades['ex'])/200 * .25
Four = sum(Grades['pr'])/40 * .25
Final_Grade=(One + Two + Three + Four)
return Final_Grade