I'm very new to using Python (ver 3.4) and decided to jump right in and create a very simple, somewhat linear, choose your own adventure text game. I'm having trouble with it though. Here is a sample of the code:
def intro():
print('''****intro text here****''')
print("Do you want to: 1. option1 2. option2")
choice = input()
if choice == 1:
choice1()
elif choice == 2:
choice2()
else:
intro()
I can't seem to get this function to run without making an infinite loop. If I add:
intro()
under it then no matter the input it just loops back to the beginning and does the whole intro over again. Any help is appreciated.