Sending a letter


#1


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???



#2

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


#3

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 getlettergrade(getavera

#4

print getlettergrade(get_average(lloyd))


#5

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.


#6

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