# How is Everybody Doing? Issue

#1

Hello all,
I was wondering if I could get some help on this.
I keep getting the Opps, try again. Did you remember to print the average of the class? It looks like " 83.866666666667" wasn't printed.

Any assistance on this would be amazing.
Thank you.

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]
}
students = [lloyd, alice, tyler]
def average(numbers):
total = float(sum(numbers))
result = total / float(len(numbers))
return result
def get_average(student):
homework = average(student["homework"])
quizzes = average(student["quizzes"])
tests = average(student["tests"])
return 0.1 * homework + 0.3 * quizzes + 0.6 * tests

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

def get_class_average(students):
results = []
for student in students:
results.append(get_average(student))
return average(results)

print get_class_average

#2

I guess the issue should be in printing out desired output. Call the students created on the functions created. Also, keep the indentation right. See below:

print get_class_average(students)

This print is on the same level as your def

#3

you need to pass the argument students fot the func get_class_average
:get_class_average(students)
n fot the letter grade func too