TUTORSYNTAX PYTHON FIRST STEPS

Six Python coding challenges

Take the next step from reading code to building your own. These six challenges follow the final activities in Python Programming: First Steps. Use the hints and test cases, then download blank starter files to write your own solutions.

WHEN YOU'VE HAD A GO

Hints, testing and solutions

Unstuck on a challenge? Start with a hint, then reveal a short plan and worked code only when you are ready.

Before you start: open a Python 3 editor, plan the input and output, predict a test result, then run and improve your program. These are original TutorSyntax teaching tasks, not official exam-board questions. All six starters are intentionally unfinished.
Challenge A · Level 1 · Make it work

Personal welcome card

Ask for first name and favourite hobby. Display a three-line welcome message that includes both answers.

Check your program: Two input prompts; exactly three output lines; try two different names.

Skills: Chapters 1–5

Get blank starter files ↓

Hint & worked solution →

Challenge B · Level 1 · Make it work

Pocket-money planner

Ask for an allowance and a purchase cost using float(). Calculate the balance and round it to two decimal places.

Check your program: £10.00 and £3.50 → £6.50; £5.00 and £7.00 → −£2.00 (overspending).

Skills: Chapters 1–5

Get blank starter files ↓

Hint & worked solution →

Challenge C · Level 2 · Decide and repeat

Ticket price checker

Ask for a customer age. Under age 13 costs £4; everyone else costs £7. Use a decision to display the correct ticket price.

Check your program: Age 12 → £4; age 13 → £7. Think carefully about the boundary.

Skills: Chapters 6–8

Get blank starter files ↓

Hint & worked solution →

Challenge D · Level 2 · Decide and repeat

Multiples trainer

Ask for a whole number. Use a for loop to print its first five multiples.

Check your program: Input 3 → 3, 6, 9, 12, 15. Stretch: repeat until the user types stop.

Skills: Chapters 6–8

Get blank starter files ↓

Hint & worked solution →

Challenge E · Level 3 · Build independently

Random revision picker

Store at least five school subjects in a list and use random.choice() to select a subject to revise.

Check your program: Every result should come from your list; repeat several times to observe variability.

Skills: Chapters 9–11

Get blank starter files ↓

Hint & worked solution →

Challenge F · Level 3 · Build independently

Simple quiz scoreboard

Store five quiz scores in a list. Use a loop and a condition to count scores of 5 or more.

Check your program: Scores [4, 7, 9, 2, 6] → 3 passes out of 5 scores checked.

Skills: Chapters 6–10

Get blank starter files ↓

Hint & worked solution →