Personal welcome card
Ask for first name and favourite hobby. Display a three-line welcome message that includes both answers.
Skills: Chapters 1–5
TUTORSYNTAX PYTHON FIRST STEPS
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.
Unstuck on a challenge? Start with a hint, then reveal a short plan and worked code only when you are ready.
Ask for first name and favourite hobby. Display a three-line welcome message that includes both answers.
Skills: Chapters 1–5
Ask for an allowance and a purchase cost using float(). Calculate the balance and round it to two decimal places.
Skills: Chapters 1–5
Ask for a customer age. Under age 13 costs £4; everyone else costs £7. Use a decision to display the correct ticket price.
Skills: Chapters 6–8
Ask for a whole number. Use a for loop to print its first five multiples.
Skills: Chapters 6–8
Store at least five school subjects in a list and use random.choice() to select a subject to revise.
Skills: Chapters 9–11
Store five quiz scores in a list. Use a loop and a condition to count scores of 5 or more.
Skills: Chapters 6–10