Quick question.....

Narsil featherstone80 at hotmail.com
Wed Jan 14 22:03:22 CET 2004


I have a list, which consists of just numbers.

Is there a command that will allow me to total up these numbers and get an average?

Say for example, the list looks thus:

numberlist = [10, 2, 5, 7, 3, 46, 4, 5, 87, 5]

How would I get the total, and how would I get the average?

Thanks in advance

TomN



More information about the Python-list mailing list