Sending a letter. help! what is wrong with my code


i really need help with this exercise i am totally stuck

i get this error when i submit it

Oops, try again. get_letter_grade(100) returned 'f' instead of 'A' as expected.

i expect it to return "a" instead of "f"

def get_letter_grade(score):
    if score is 90:
        return "a"
    elif score is 80:
        return "b"
    elif score is 70:
        return "c"
    elif score is 60:
        return "d"
        return "f"


why do you use the is keyword? You learned comparison operators, right? I would use them in this case


thanks i will fix it now :smile:


use >= (greater than or equal to) instead of "is"