Calculate average and standard deviation

import statistics

data = [10, 20, 30, 40, 50]

average = statistics.mean(data)
std_deviation = statistics.stdev(data)

print("Average:", average)
print("Standard deviation:", std_deviation)

Leave a Reply

Your email address will not be published. Required fields are marked *