-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex31.py
43 lines (32 loc) · 1.25 KB
/
ex31.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
print("""
You are in dark room with two doors.
Which door wiil you enter - 1 or 2!?
""")
door = input("> ")
if door == "1":
print("In this room, a giant bear is eating 'Frienship' cheese.")
print("Your actions!?")
print("1. I'll take the cheese.")
print("2. I'll yell in the bears ear.")
bears = input("> ")
if bears== "1":
print("The bear grabbed your face.That's great!")
elif bears == "2":
print("The bear bit your leg.That's great!")
else:
print(f"Great, this action {bears} was the only correct one.")
print("The bear run away.")
elif door == "2":
print("You are looking inti the endless abyss of Cthulhu's eyes.What are you doing!?")
print("1. I'll tell Cthulhu about swamps in Siberia.")
print("2. I'll pat the yellow buttons on my jacket.")
print("3. I'll try to whistle the song 'Black Raven'.")
insanity = input("> ")
if insanity == "1" or insanity == "2":
print("You survived because Cthulhu turned to jelly.")
print("Just great!")
else:
print("Madness seized you and you fell into the pool of rot.")
print("Just great!")
else:
print("Madness seized you and you tore your face to pieces.Great job!")