Average Calculator

Step 2 – Get the input

We need to get the user to input two things: the name of the child and how many tests they did.

Code helper image
  1. Underneath your code to display the title add:  name = input("Enter the child's name")
  2. Then add the next line:  tests = int(input("How many tests"))

    This is a little trickier because it needs to be a number. When we did this before we converted it to a number on a new line, but we can actually do it all on the one line. Which is handy. Just don't forget to close the brackets properly!

  3. Run your code (Run > Run Module)

Python will ask you to save your code each time you make a change and then run it. Just say OK each time.

You can enter the name and number of tests, but nothing else happens yet.