Python Missions

Short coding challenges that build up from simple output to proper interactive programs. Open a mission, try the code, change it, run it, and make it your own.

Rule: get something working first. Improve it second.

1. OUTPUTS

Make Python say things.

1Make Python speak
print("I can actually code.")
Your mission: Change the message. Then make Python display three different messages.
Level up: Make one of the messages something that would make your friend laugh.
2Your current mood

Create an output like this:

TODAY'S STATUS
Mood: tired
Energy: 3/10
Would rather be: at home
Your mission: Use three or more print() statements and make the output your own.
3Unpopular opinions
print("School should start at 10am.")
print("Winter is better than summer.")
print("Pineapple belongs on pizza.")
Your mission: Replace these with three opinions of your own. They can be serious, funny or ridiculous.
Level up: Add five opinions.
4Fake notification
NEW MESSAGE
From: Mum
You have 5 minutes to get downstairs.
Your mission: Recreate this using print(), then invent your own fake phone notification.
5The world's worst advert
INTRODUCING...
The Invisible Umbrella!

Price: £99.99

It does absolutely nothing.
Your mission: Create an advert for a deliberately terrible product.
Level up: Add a slogan and a fake review.

2. INPUTS

Make Python talk to you.

1What's your name?
name = input("What should I call you? ")

print("Hello", name)
Your mission: Run it, then change the final message so it sounds more interesting.
Level up: Add a second question.
2Quick interview
name = input("Name: ")
food = input("Food you could eat every day: ")
place = input("Where would you rather be right now? ")
Your mission: Ask three questions and display all three answers.
Level up: Turn the answers into one full sentence.
3Your ideal day

Ask four questions:

Where would you go?
Who would you take?
What would you eat?
What would you do?
Your mission: Use the answers to build a personalised result.
Your perfect day:
Paris with Maya, eating pizza and shopping.
4Design your own celebrity

Ask for:

Stage name:
Job:
Special talent:
Most ridiculous habit:
Your mission: Generate a celebrity profile using the user's answers.
Level up: Add a catchphrase.
5Dream holiday builder
Country:
Hotel type:
Food:
Activity:
Your mission: Ask for all four and produce a short dream-holiday summary.

3. SELECTION

Make Python make decisions.

1This or that?
drink = input("Tea or coffee? ")

if drink == "coffee":
    print("Good choice.")
else:
    print("Interesting...")
Your mission: Change the question completely. Try cats/dogs, city/beach, sweet/savoury, summer/winter, or invent your own.
2Rate your day
score = int(input("Rate today out of 10: "))

Create different responses:

8–10  → Pretty good.
5–7   → Surviving.
1–4   → Let's forget today happened.
Your mission: Use if, elif and else.
3What should you watch?
Do you want something funny, scary or relaxing?
Your mission: Recommend something different for each answer. You decide the recommendations.
Level up: Add a fourth category.
4Outfit weather checker

Ask for the temperature and give advice:

Below 8  → You need a coat.
8–17     → Jacket weather.
18+      → Probably fine without one.
Your mission: Build this with selection, then change the advice or temperatures.
5How expensive is your taste?

Ask how much someone would spend on trainers, a bag, a concert ticket, or something else of your choice.

Under £50
£50–£100
£101–£200
Over £200
Your mission: Make Python react differently to each price range.
6Weekend decision maker
How much money do you have?

Possible results:

£0–£10   → Free day out
£11–£30  → Cinema + food
£31–£60  → Shopping trip
£60+      → You're paying for everyone
Your mission: Create your own recommendations for each budget.
7Friendship quiz

Ask three questions such as:

Would you share your food?
Would you answer a 2am phone call?
Would you tell your friend their outfit looks terrible?
Your mission: Give a point for each chosen answer and show a friendship score at the end.
Level up: Give different final messages depending on the score.
8Personality result
Stay in or go out?
City or countryside?
Plan everything or decide on the day?
Your mission: Use the answers to generate a personality result.

4. FOR LOOPS

Make Python do the repetitive work.

1Don't type it 100 times
for count in range(5):
    print("Friday")
Your mission: Change the message and change how many times it repeats.
Level up: Make it repeat 100 times.
2Concert countdown
5 days to go!
4 days to go!
3 days to go!
2 days to go!
1 day to go!
TODAY!
Your mission: Use a loop to create a countdown to something you choose.
3Hype machine
Your mission: Ask for a name and repeat a positive or funny message five times.
Maya is going to smash this.
Maya is going to smash this.
Maya is going to smash this.
4Emoji wall
★ ★ ★ ★ ★
★ ★ ★ ★ ★
★ ★ ★ ★ ★
Your mission: Use loops to create a repeated pattern. Choose your own symbol.
5Money challenge

Imagine saving £5 each week.

Week 1: £5
Week 2: £10
Week 3: £15
Week 4: £20
Your mission: Use a loop to show the amount saved each week.
Level up: Ask the user how much they want to save each week.
6Spam generator
Are we there yet?
Are we there yet?
Are we there yet?
Your mission: Create your own deliberately annoying repeated message.

5. WHILE LOOPS

Keep going until something happens.

1Password checker
password = input("Password: ")

while password != "python":
    print("Wrong password.")
    password = input("Try again: ")

print("Access granted.")
Your mission: Change the password and messages.
2Keep asking

Keep asking:

Type something:

until the user types:

stop
Your mission: When they finally type stop, display a final message.
3Guess the number
Guess: 4
Wrong.

Guess: 8
Wrong.

Guess: 7
Correct!
Your mission: Keep asking until the user guesses the secret number.
Level up: Tell them whether the guess was too high or too low.
4Locked phone
Enter PIN:
Wrong.
Attempts remaining: 2
Your mission: Give the user three attempts to enter the correct PIN.
PHONE LOCKED
Level up: Let the program stop early if the PIN is correct.
5How long can you last?
Do you want to quit? yes/no
Your mission: Count how many times the user types no, then show the total at the end.
You lasted 7 rounds.
6Escape Room
You are standing in a room.
There is a red door and a blue door.

Which door?
Your mission: Use selection and a while loop so the player keeps making choices until they escape.
Level up: Add three rooms, a bad ending and a hidden escape.