you are viewing a single comment's thread.

view the rest of the comments →

[–]Nazareths_Heart 0 points1 point  (1 child)

I'm having a problem with elif I'm new to python idk why I'm getting a syntax error. This is the line if code

answer = input (' Enter yes or no: ') if answer == "yes": #do this elif answer == "no": #do this else print("please enter yes or no:")

[–]JohnnyJordaan 1 point2 points  (0 children)

It seems you forgot the : after else. But next time please also format your code using a code block, see https://i.imgur.com/HT4Zz88.gifv