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.Make Python say things.
print("I can actually code.")
Create an output like this:
TODAY'S STATUS Mood: tired Energy: 3/10 Would rather be: at home
print() statements and make the output your own.print("School should start at 10am.")
print("Winter is better than summer.")
print("Pineapple belongs on pizza.")
NEW MESSAGE From: Mum You have 5 minutes to get downstairs.
print(), then invent your own fake phone notification.INTRODUCING... The Invisible Umbrella! Price: £99.99 It does absolutely nothing.
Make Python talk to you.
name = input("What should I call you? ")
print("Hello", name)
name = input("Name: ")
food = input("Food you could eat every day: ")
place = input("Where would you rather be right now? ")
Ask four questions:
Where would you go? Who would you take? What would you eat? What would you do?
Your perfect day: Paris with Maya, eating pizza and shopping.
Ask for:
Stage name: Job: Special talent: Most ridiculous habit:
Country: Hotel type: Food: Activity:
Make Python make decisions.
drink = input("Tea or coffee? ")
if drink == "coffee":
print("Good choice.")
else:
print("Interesting...")
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.
if, elif and else.Do you want something funny, scary or relaxing?
Ask for the temperature and give advice:
Below 8 → You need a coat. 8–17 → Jacket weather. 18+ → Probably fine without one.
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
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
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?
Stay in or go out? City or countryside? Plan everything or decide on the day?
Make Python do the repetitive work.
for count in range(5):
print("Friday")
5 days to go! 4 days to go! 3 days to go! 2 days to go! 1 day to go! TODAY!
Maya is going to smash this. Maya is going to smash this. Maya is going to smash this.
★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
Imagine saving £5 each week.
Week 1: £5 Week 2: £10 Week 3: £15 Week 4: £20
Are we there yet? Are we there yet? Are we there yet?
Keep going until something happens.
password = input("Password: ")
while password != "python":
print("Wrong password.")
password = input("Try again: ")
print("Access granted.")
Keep asking:
Type something:
until the user types:
stop
stop, display a final message.Guess: 4 Wrong. Guess: 8 Wrong. Guess: 7 Correct!
Enter PIN: Wrong. Attempts remaining: 2
PHONE LOCKED
Do you want to quit? yes/no
no, then show the total at the end.You lasted 7 rounds.
You are standing in a room. There is a red door and a blue door. Which door?