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


#1

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"
    else:
        return "f"


#2

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


#3

thanks i will fix it now :smile:


#4

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


#5