For Python 3.4+, use mean()
from the new statistics
module to calculate the average:
from statistics import meanxs = [15, 18, 2, 36, 12, 78, 5, 6, 9]mean(xs)
For Python 3.4+, use mean()
from the new statistics
module to calculate the average:
from statistics import meanxs = [15, 18, 2, 36, 12, 78, 5, 6, 9]mean(xs)