The English Modern School – Al Khor Python Programming
Year 8 Python Revision Challenge: My Fitness Tracker
Scenario: You are building a mini fitness tracker in Python. The tracker will ask for user input,
calculate the average number of steps walked, and give a message based on performance.
Learning Goals:
● Use print() and concatenation
● Declare and use variables
● Create formulas using variables
● Use input() and cast to correct data type
● Apply if-else statements
● Use type() to check data type
● Practice variable naming conventions
● Assign multiple values to variables
Your Task:
Write a Python program that:
a. Greets the user with their name using concatenation.
b. Asks the user to input their steps walked for 3 days.
c. Casts inputs to integers.
d. Calculates total and average steps using variables and a formula.
e. Prints the total and average using print() and string concatenation.
f. Uses a conditional statement:
a. If average steps ≥ 8000 → print "Great job! You're active!"
b. Else → print "Keep going! You can do it!"
g. Prints the data type of one of the variables using type().
The English Modern School – Al Khor Python Programming
h. Demonstrates variable naming styles: camelCase, PascalCase, snake_case.
a. Uses one line to assign:
mondaySteps = 7000, tuesdaySteps = 8000, wednesdaySteps = 9000
b. Assigns one value to three variables in a single line (e.g., a = b = c = "Exercise")