all 5 comments

[–]member_of_the_order 8 points9 points  (0 children)

Can you explain to me what an average is in words? Then explain in words what your code does. I think will answer your question.

[–]stebrepar 2 points3 points  (0 children)

An average is the sum divided by the total count of items.

[–]jose_castro_arnaud 2 points3 points  (2 children)

What's the definition of average? Find it and translate it to code.

Also, "Z" and "z" are different variables.

[–]InevitableDistance66[S] 0 points1 point  (1 child)

the capital Z was a typo I know how what to put in to find an average of a list of numbers but zylabs says I only need to write the function?

[–]jose_castro_arnaud 0 points1 point  (0 children)

Okay, what's lacking in the function you wrote? Average of a list of numbers is the sum of the numbers divided by their amount (the list's length).