Sending a letter


trying to figure out the sending a letter exercise. print getlettergrade(getaverage(lloyd)) I do exactly what it tells me but it still says oops. Any ideas???


Can you copy and paste your entire code so we can see where the problem is?


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"
return "F"

print getlettergrade(getavera


print getlettergrade(get_average(lloyd))


When you call a function you have to make sure the name matches or it doesn't know what to look for. For instance, missing underscores (_) are important.


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