Python Programming: Interactive Text AdventurePython basics (inputs, variables, if/else)

Discussion Questions

  1. 1What is the difference between how a human makes a decision and how an if/else statement works in code?
  2. 2Can you think of a real app or game where branching choices change what happens next? How do you think it works behind the scenes?
  3. 3Why is it important for a program to handle unexpected inputs - what could go wrong if it doesn't?
📌

Add a Padlet or Mentimeter board

Embed a shared class board for student contributions and ideas.

Python basics (inputs, variables, if/else)

Write your first interactive program and understand the building blocks of logic.

Quick Take· 60 sec warm-up

Before the lesson

Watch this 60-second clip for a fast vibe-check on the concept. Then dive into the full lesson below.

Video lesson· 22 min
Reading

Goal: make the computer respond to choices

You're going to build a text adventure. That means:

  • the player types something
  • the game responds
  • choices change the story

Core skills

  • print() and input()
  • variables (store player name, items)
  • if / elif / else

Deliverable (end of week)

Create a mini scene with:

  • player name input
  • 2 choices
  • 2 different outcomes

Key takeaways

  • 1Programs are instructions + decisions.
  • 2Inputs become variables you can use later.
  • 3If/else is how games branch.

Quick self-check