def rules():
“”“1. When you get a question, enter the number behind the choice you want to choose
2. Don’t cheat. (Other wise how is the game fun?
3.You have an inventory
4.Have fun!”""
def instructions():
“”“You wake up and find yourself in a dark room.
You do not know where you are, or what happened to you.
You are a aware that there is a dim light behind you”""
inventory = ()
print('Welcome to escape the mansion!')
input('\nPlease press enter to continue...')
instructions()
print('''\nYou can either...
1.Go through the door in front of you
2.Go through the door on your left
3.Turn Behind you''')
input('>>>')
def rules():
"""1. When you get a question, enter the number behind the choice you want to choose
2. Don't cheat. (Other wise how is the game fun?
3.You have an inventory
4.Have fun!"""
def instructions():
"""You wake up and find yourself in a dark room.
You do not know where you are, or what happened to you.
You are a aware that there is a dim light behind you"""
inventory = ()
print('Welcome to escape the mansion!')
input('\nPlease press enter to continue...')
instructions()
print('''\nYou can either...
1.Go through the door in front of you
2.Go through the door on your left
3.Turn Behind you''')
input('>>>')
Now you’re just lying to me. That does run. No errors.
Perhaps you are expecting more than just running, perhaps you expect it do do something specific, what would that be?
Because that part of the code doesn’t get executed. Where is it located, and how does one execute that part?
…Did you just remove all your replies or is there somebody else rummaging around for no good reason?
Nope, just a spam filter being triggered. Fixed it.
That first print statement.
Why does that not print anything?
It is supposed to execute itself when you run the program and say: Welcome to Escape the mansion.
There’s nothing that says that you can’t ask for help with homework.
But you do need to show that you’re looking to learn what needs learning to solve it yourself rather than looking for a quick fix without having to understand it.