Make a story change with each decision.
Explore an interactive story powered by conditions. In a live lesson, a learner can build a similar idea in Python, then add variables, inventories, loops and more complex choices.
See the Python idea behind the interaction
choice = input("Where will you explore? ")
if choice == "forest":
print("You find a hidden map!")
elif choice == "lab":
print("You activate a robot!")
else:
print("You invent a new game!")This on-page demo uses JavaScript; the code above shows how the same decision structure can be implemented in Python.