Sending a letter


#1



please tell me what is wrong with this code

https://www.codecademy.com/en/courses/python-beginner-en-qzsCL/1/3?curriculum_id=4f89dab3d788890003000096#


File "python", line 30
def GetLetterGrade(score):
^
SyntaxError: invalid syntax


I can't find the reason for the syntax error


def GetLetterGrade(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 get_letter_grade(lloyd)


#2

The name of the function does not match the call. The exercise calls for,

def get_letter_grade(score):

#3

never mind I found I mistyped something in a previous section of code


#5

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