r/code • • Apr 10 '19

Somebody help me, what's wrong

Post image
0 Upvotes

4 comments sorted by

5

u/[deleted] Apr 10 '19

Looks like you assigned "left" then "right" to the variable input instead of actually taking input from the user. So, input is always "right" when it reaches the if statement.

1

u/arturgomes Apr 10 '19

its your indentation in the last line, you need two spaces not one

1

u/Drwatson197 Apr 11 '19

answer= input(‘your answer’) If answer==‘left’: Do things Else Do things

1

u/ComprehensiveDucc Apr 29 '19

also, add \n inside of the parenthesis on the end of your print() statements, it will make your code cleaner while still producing the blank line effect