Hi guys
I am running python 3.5.1
Could someone please run this code and tell me what is wrong with it?
import sys
import time
import random
inventory = ()
candle = ('candle')
# This line/section (start1) below is for returning to spawn
# point after checking the closet
def start1():
""" 1 - You can, walk through the door in front of you.
2 - Walk through the door on your left.
3 - Turn behind you and see what is on the table."""
choice1 = input('>>>')
if ("1") in choice1:
fall_stairs()
elif ("2") in choice1:
begin_l_door()
else:
candle1()
def start():
"""---------------------------------------------------------------------------
You wake up and do not know where you are.
You become aware that there is a very dim light
fixed to the wall behind you.
1 - You can, walk through the door in front of you.
2 - Walk through the door on your left.
3 - Turn behind you and see what is on the table.
------------------------------------------------------------------------"""
while True:
choice = input('>>>')
if choice == ("2"):
break
if ("1") in choice:
fall_stairs()
elif ("2") in choice:
begin_l_door()
else:
candle_1()
def fall_stairs():
"""Because you cannot see where you are going,
you fall down a dark staircase and die.
-------------------------------------------"""
print('')
input('\nPlease press enter to exit.')
sys.exit(0)
def begin_l_door():
"""You just enter a dark closet"""
def candle_1():
"""You turn around and find a candle on the table behind you"""
inventory += (candle)
print("Your inventory now contains:")
print(inventory)
start()