I am a beginner having some trouble with my e.g. code and cant figure out what is wrong with it
any help would be much appreciated!
answer = input("Do you want to play (yes/no)?\n>")
if answer .lower() .strip() == "yes":
answer = input("Question 1, Option 1 - a Option 2 b Option 3 - c \n>")
input(answer)
if answer .lower() .strip() == "a":
answer = input("Question 2.1, Option 1 - a Option 2 - b Option 3- c \n>")
elif answer .lower() .strip() == "b":
answer = input("Question 2.2, Option 1 - a Option 2 -b Option 3 - c \n>")
else answer .lower() .strip() == "c":
answer = input("Question2.3, Option 1 - a Option 2 - b Option 3 - c \n>")
else:
print =("Mabey next time!")
line 12 VS code is saying I need a ":" Infront of "answer" but I don't see why but if I do put I there then I apparently need an expression at the end of "c:". So how do I solve this and make the code work?