Given an array A containing N integers, find the variance of the array. Return your answer up to 2 decimal points.
1 <= N <= 1000 1 <= A[i] <= 1000
First argument is an integer, N, denoting the length of the input array Second line consists of N elements, separated by space
Return a float value as specified in the question
Input 1: N = 10 A = [99, 81, 4, 74, 9, 79, 45, 25, 44, 86]
Output 1: 1034.64
Mean = 54.6, simply apply the formula of variance to get 1034.64
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified.
Still have a question? Checkout Sample Codes for more details.