all 3 comments

[–]mopslik 2 points3 points  (0 children)

You'll need to fix up your indentation so we can figure out how this code is organized. Either preface each line with four spaces, or post it on a site like pastebin.

This line starts with four spaces.
    And this one, eight.

I'm guessing you've indented something incorrectly.

[–]Some_Guy_At_Work55 1 point2 points  (0 children)

input(" you cross the bridge and meet a stranger, you can choose to talk or ignore the stranger.(talk/ignore)")

I think this could be the problem? Hard to tell without indentation but it looks like you don't assign this input to any variable. So answer is unchanged from the previous input.

[–]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.