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…