Sending a letter


#1

Hi this is the code I entered:

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"
print get_letter_grade(get_average(lloyd))

I try to run this code but when I click run it keeps on loading. What am I doing wrong here? If somebody can help me that would be great!


#2

May we see your get_average function, please? Thanks.


#3

Hi after your comment I looked at my previous assignments and I fixed it and now my code is working! thanks


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.