Generation

translateSat, 12 Nov 2022

import math a = [11,11.5,12.3,10.9,10.5] avg = sum(a)/len(a) arr_d = [(x-avg)**2 for x in a] print(avg,math.sqrt(sum(arr_d)/len(arr_d)))

# calculate mean and std deviation import math a = [11,11.5,12.3,10.9,10.5] avg = sum(a)/len(a) arr_d = [(x-avg)**2 for x in a] print(avg,math.sqrt(sum(arr_d)/len(arr_d)))

Questions about programming?Chat with your personal AI assistant