numbers = [3, 18, 2, 1, 70, 12, 36, 12, 78, 5, 6, 9] import statistics print(statistics.mean(numbers))
import numpy as np values=[1,10,100] print(np.mean(values)) values=[1,10,100,np.nan] print(np.nanmean(values))