In: Computer Science
s = [1,1,2,2,2,9,-5,-10,8,0]
#source code:
import numpy as np
from scipy import stats
import math
arr=[1,1,2,2,2,9,-5,-10,8,0]
print("The mean is:",np.mean(arr))
print("The median is:",np.median(arr))
print("The mode is:",stats.mode(arr))
print("The variance is:",np.var(arr))
print("The standard deviation is:",np.std(arr))
#output:
#if you have any doubts comment below..if you like give thumbs up...