I did the code and it lets me go on to the next excersize but i was wondering how i could do step 3 in the instructions and test my code.
1)Define a new function called get_letter_grade that has one argument called score. Expect score to be a number.
2)Inside your function, test score using a chain of if: / elif: / else: statements, like so:
If score is 90 or above: return "A"
Else if score is 80 or above: return "B"
Else if score is 70 or above: return "C"
Else if score is 60 or above: return "D"
Otherwise: return "F"
3)Finally, test your function! Call your get_letter_grade function with the result of get_average(lloyd). Print the resulting letter grade.
def get_letter_grade(score): if(score >= 90): return "A" elif(score >= 80): return "B" elif(score >= 70): return "C" elif(score >= 60): return "D" else: return "F"