What error did i make?(begginer error)
This is my code so far:
name = input("Type your name")
print("Welcome", name, "to this adventure!")
answer = input ("You wake up, and are laying on a bed.(get up/stay asleep")
if answer == "get up"
elif answer == "stay asleep"
else:
print("You stayed asleep and had no adventure, and lost.")
It said the “get up” was a syntax error, what did i do wrong?
Voters
codingMASTER398
You need to add a : afterwards.
I'd recommend looking this up before adding a post about it.
You're missing a few
:
after yourIF
statements. Also, you can't have anIF
orELIF
statement with nothing following it: