What is my goal? It's Ok To Be Average 5/11


#1



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


I don't understand the goal. It asks to have you "sum()" and put the numbers in "total" but I don't know if it just wants a complete average of all grades on the page?


I would think we are creating an average for each part "homework" "quizes" "tests" and saving those individually.


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]
}

# Add your function below!
total = 0
def average(numbers):
    for p in students:


#2

in this exercise, you just want to calculate the average of a list of numbers (so sum divided by the length of the list)


#3

Thank you @stetim94. That makes more sense.
I was under the impression I was going to be averaging each group "homework" "quizzes" etc. AND on top of that just dumping the total in total or averaging all of the numbers for one big total... They should be a little more clear on this one.


#4

no, that is for the next exercise


#5

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