Sending a Letter


#1

def get_letter_gread(score):
if score >= 90:
return "A"
elif score >=80:
return "B"
if score >= 70:
return "C"
elif score >= 60:
return "D"
else:
return "F"

print get_letter_gread
print get_letter_gread(lloyd)

i have written my code according to instructions i have followed idented. but i did not know where my code went wrong. can any one please help me to solve this problem.

When i click on save&submit it was showing me like this.

Oops, try again. get_letter_grade seems to be missing.


#2

is not the same as get_letter_grade :slight_smile:


#3

i am so stupid. thank you for ur help.


#4

You're welcome, typos happen a lot. :slight_smile:


#5

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