Interview Query

Compute Variance

Start Timer

0:00:00

Upvote
7
Downvote
Save question
Mark as completed
View comments (31)
Next question

Write a function that outputs the (sample) variance given a list of integers.

Note: round the result to 2 decimal places.

Example:

Input:

test_list = [6, 7, 3, 9, 10, 15]

Output:

get_variance(test_list) -> 13.89
.
.
.
.
.


Comments

Loading comments