Average Calculator

Step 4 – Get the average and print it

All we have to do now is get the average and print it out. Easy.

Code helper image
  1. Add the code after the for loop – watch your indent here
  2. The / symbol is the symbol for division in Python. To calculate the average, we take the total and divide by the number of tests
  3. Then print out the average for the child
  4. Run your code and check it all works

Test it to make sure that everything works. What happens if there's only one test? Or if there aren't any tests? Or if the marks are all the same?