Exam Statistics

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

StartPython Illustration
Exam Statistics
Lesson 1 of 1
  1. 1

    Creating 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...

  2. 2

    As a refresher, let's start off by writing a function to print out the list of grades, one element at a time.

  3. 3

    So far, you've created a helper function that will be used in the next sections. You also have a solid handle on the concepts that we'll need to continue. The next step in the creation of our gr...

  4. 4

    Now 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. ...

  5. 5

    The 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, [...] to compute the sum.

  6. 6

    Great work creating the capability to compute the average of the test grades. We're going to use the average for computing the variance. The variance allows us to see how widespread the grades wer...

  7. 7

    Let'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 ...

  8. 8

    Great 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...

  9. 9

    You've done a great job completing this program. We've created quite a few meaningful functions. Namely, we've created helper functions to print a list of grades, compute the sum, average, varian...

Exam Statistics

StartPython Illustration