Write a used-defined function that calculates the average and the standard deviation of a list of numbers. Use the function to calculate the average and the standard deviation of the following list of grades: 80 75 91 60 79 89 65 80 95 50 81
Note: The average x_ave (mean) of a given set of n number x1,x2,... . .,xn is given by: x_ave=(x1+x2+x3+...+xn)/n
The standard deviation is given by: segma=sqrt((sum(xi-x_ave)^2)/(n-1))