Skip to content

Average of a list

Average of a list

Return the mean of a list: the total divided by how many numbers there are.

len(nums) tells you how many items the list has. Dividing with / always gives a decimal, so the average of 1 and 2 is 1.5.

Log in or create account

IGCSE, A-Level & AP