I just started learning Python... 11 hours ago... And I tried to make an old-school dungeon game. So I made this program, but I get errors when I try to run it. I think its worth mentioning that I wrote the program while using Python 3.1 but I just changed to 2.6 because it seems to be used more.
The error I get is...
How do I solve this? And are there any other things I should change?
Code:
print("Welcome to Boyyini's first program. \n This is my first attempt at making a program from scratch.") print("In this program I will be taking you through a text-based mini-adventure.") input("Press the enter key to continue.") print("First, I will ask you your name.") name = input("Please enter your name") print("Hello,", name,"What a nice name.") input("Press the enter key to continue.") gender = input("Are you a guy or girl?") print("Your a ", gender, "? Okay, that's cool.") age = input("How old are you?") print("Okay, I guess ",age, "is old enough to go...") print("Last question, do you have extensive liability insurence?") input("Ha ha ha, just kidding! ... Press Enter to start your adventure!") print("\n\nOkay! Now your at the entrance of the cave!") a = input("Do you want to Run In or Walk In?") if a == 'Run In': print("You burn a few calories.") if a == 'Walk In': print("You slowly walk in.") print("You survived the cave!") input("\n\nPress the enter key to exit.")
Code:
Traceback (most recent call last): File "C:\Documents and Settings\Boyyini\Desktop\Test1.py", line 3, in <module> input("Press the enter key to continue.") File "<string>", line 0 ^ SyntaxError: unexpected EOF while parsing
Comment