# Exam Statistics

In this project, we'll write a program to compute test scores.

StartExam Statistics

Lesson 1 of 1

- 1Creating a program to compute statistics means that you wonâ€™t have to whip out your calculator and manually crunch numbers. All youâ€™ll have to do is supply a new set of numbers and our program doesâ€¦
- 2As a refresher, letâ€™s start off by writing a function to print out the list of grades, one element at a time.
- 4Now that we have a function to print the grades, letâ€™s create another function to compute the sum of all of the test grades. This will be super-helpful when we need to compute the average score. â€¦
- 5The average test grade can be found by dividing the sum of the grades by the total number of grades. Luckily, we just created an awesome function, grades_sum to compute the sum.
- 7Letâ€™s see how the grades varied against the average. This is called computing the
*variance*. A very large variance means that the studentsâ€™ grades were all over the place, while a small variance â€¦ - 8Great job computing the variance! The last statistic will be much simpler: standard deviation. The standard deviation is the square root of the variance. You can calculate the square root by raisiâ€¦