Sunday 11 October 2026
CodingDrills.au
Complete 3 warm up questions to unlock bonus challenges!
Age By Year Group
Warm Up Question1 of 3
An average person starts kindergarten when they are 5 years old. They will be in Year 1 when they are 6 years old, Year 2 when they are 7 years old, etc. Write a program that inputs someone's year group and outputs how old they are (assume the above to be true).
Input Format
An integer: someone's year group.
Output Format
An integer: that person's age.
Example
Input:
4
Output:
9
Python Code Editor
2:59
# Write your Python code here
Complete 3 more warm up questions to unlock bonus challenges!