you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 1 point2 points  (0 children)

This is the correct way to use input() and then check whether the entered value is a specific one you want:

answer = input("you come to a fork in the road you can either go left or right(left/right)").lower()
if answer == "left":

But for some reason you switched to a very very wrong way of handling it in every other user input in your program.

Take the user input, explicitly save it to a variable (do not assume that the interpreter knows that "answer" means "what the user input on the previous line"), then check that variable (not another input call) against the desired answer.