How can I divide total by the length of the numbers list

This is my code. I am trying to divide total by the length of the numbers list. Use the built-in len() function to calculate that, but I cannot figure out how to access to the list using ‘len()’ function.

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 avereage (numbers):
total = sum(numbers)
total = float(total)
return total/len(numbers)

what do you mean by access?
you’d call len with a list as argument and get the length back, but you’re already doing that, so what are you asking?

When I run the code, it says total does not contain any number

It is one of the tutorial by the way. It is called
"STUDENT BECOMES THE TEACHER

It’s Okay to be Average

If you mean that you’re trying to get the average of zero students, then that is not something that makes sense to do, and you probably shouldn’t be trying to do it, so maybe you meant to do something else.

Also you’ve misspelled your function’s name so it isn’t being used at all.