Skip to content
Permalink
3561bf98e5
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
36 lines (35 sloc) 1.4 KB
def haolam():
feeling...")"
print("----------4000CEM Week 4 Lab 2 Task----------")
print("----------------<InsertTitleHere>---------------")
print("---------------<InsertAuthorsHere>--------------")
print("\n")
print("You awake in a dark room. Do you:")
print("1.) Scream for help.")
print("2.) Press the light switch")
x = input("Enter a or b: ")
if x == 1:
print("Someone hears your screams...")
print("....")
print("You hear the faint sound of footsteps in the distance")
print("You try to look around but it's too dark to see. Do you:")
print("1. Hide under the covers")
print("2. Press the light switch")
x = input("Enter a or b: ")
if x == 1:
print("You hide under the covers, the warmth providing you a slight comfort")
print("But you know that you could be in danger")
else:
print("The light comes on.")
print("You do not recognise the room but you have a really bad
# Contine adventure Here
elif x == 2:
print("The light comes on.")
print("You do not recognise the room but you have a really bad feeling...")
resp = input("You hear a scream outside, do you wish to respond or stay quiet?\n1. Respond\n2. Stay Quiet")
if resp == 1:
print("You do not get a reply")
elif resp == 2:
print("The scream gets louder")
else:
print("That was not an option. Game Over")