Skip to content
Sign upLog in

What error did i make?(begginer error)

Profile icon

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"

print("You stayed asleep and had no adventure, and lost.")

It said the “get up” was a syntax error, what did i do wrong?

You are viewing a single comment. View All
Profile icon

You need to add a : afterwards.
I'd recommend looking this up before adding a post about it.