Step 2: Doors Inside Doors ๐ฏ๏ธ
Right now your story has one choice and then it's over. Real adventures keep going: every choice leads to another choice. ๐ณ
You do that by putting an if inside another if:
if choice == "north":
print("๐บ A wolf blocks your path!")
move = input("Do you RUN or ROAR? ").lower().strip()
if move == "roar":
print("๐ฒ The wolf runs away!")
else:
print("๐ You escape, but drop your map.")
Look at the indentation โ that's what makes it work. The second question is indented, so it only happens if they went north. Python reads spaces the way you read paragraph breaks. ๐
This is called nesting, and it's how one program can hold a hundred different stories.
Your mission
Keep your Step 1 story, then:
- Add a second choice inside the left door (indented!)
- Add a second choice inside the right door
- Make at least one path end spookily โ a ghost, a trapdoor, a basement you never leave... ๐ป
Two questions in a row, remember: that's two input() calls.
Your code
Press โถ Run to see what your code does!