Challenge 3: Age flowchart

Suggested time: 20 minutes

The flowchart shown below is for an algorithm that performs a range check when the user enters their age.

Flowchart for a range check

Using the file Q03.py below:

Write the code to implement the algorithm in the flowchart.

Do not add any additional functionality

If this was a real question it would tell you to save your code as Q03_FINISHED.py but you might want to save your code so you can show your teacher or come back to it later by pressing Ctrl + S or clicking on the icon that looks like this:

Save / share icon in create.withcode.uk lets you save your code