Sending a letter


please tell me what is wrong with this code

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"
        return "F"
print get_letter_grade(lloyd)


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

def get_letter_grade(score):


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


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