# Very minor glitch on Sending A Letter

#1

In this exercise, Step 3 states: "Finally, test your function! Call your get_letter_grade function with the result of get_average(lloyd). Print the resulting letter grade."

Here, the following code is passed (when I originally finished this I didn't have `get_letter_grade(get_average(lloyd))` greyed out as a comment) by Codeacademy.
It will still pass the user if the greyed out code at the end is missing.

``````lloyd = {
"name": "Lloyd",
"homework": [90.0, 97.0, 75.0, 92.0],
"quizzes": [88.0, 40.0, 94.0],
"tests": [75.0, 90.0]
}
alice = {
"name": "Alice",
"homework": [100.0, 92.0, 98.0, 100.0],
"quizzes": [82.0, 83.0, 91.0],
"tests": [89.0, 97.0]
}
tyler = {
"name": "Tyler",
"homework": [0.0, 87.0, 75.0, 22.0],
"quizzes": [0.0, 75.0, 78.0],
"tests": [100.0, 100.0]
}

def average(numbers):
total = sum(numbers)
total = float(total)
total = total/len(numbers)

def get_average(student):
homework = average(student["homework"]) * .1
quizzes = average(student["quizzes"]) *.30
tests = average(student["tests"]) *.60
return homework + quizzes + tests

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

#2

Did you run this code prior to #ing the get_letter_grade(get_average(lloyd))? If so, try refreshing the page with the code exactly as is currently, and try running the code once again.

#3

The first time I ran it, I didn't even have `get_letter_grade(get_average(lloyd))` written, I just ran everything else before it to check for console errors. However, the website passed me. Like I said it's very minor and doesn't cause any inconvenience.

But yes I can see how that can be a bit difficult to prove; I do know the website's console/terminal has memory.

#4

I think the system ignores whether you test your code or not. I assume that as long as the code is right, whether you test it out or not is up to you. That's my take on it, but I could be wrong

#5

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