If your question is unrelated to a current thread, it's best to start a new thread. I've split your question off into it's own thread for you :)
Your question isn't really specific, but what you're explaining can be handled through user input (
https://docs.python.org/3/library/functions.html#input), and branching based on the result of that input (
https://docs.python.org/3/tutorial/contr...statements)
As a simple example, take a look at this:
print("The tunnel splits here. Do you want to go left (1), or right (2)?")
choice = None
while choice not in ("1", "2"):
choice = input("1|2: ")
if "1" == choice:
print("You go left. You find a fountain granting eternal life.")
elif "2" == choice:
print("Being bold, you head right. There's a bowl of candy!")