-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
35 lines (35 loc) · 1.22 KB
/
main.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
print("Hello and welcome to our beta Choose Your Own Adventure game.")
pName = input("But first, what is your name? ")
pName = pName.capitalize()
print("-----")
print("Hi", pName)
print("Now, what is your favorate food from these options:")
print("A: Pizza")
print("B: Burgers")
print("C: Tacos")
favFood = input("Type the letter to answer: ")
favFood = favFood.capitalize()
print("-----")
while (favFood != "A" and favFood != "B" and favFood != "C"):
print("Sorry, you have to type A or B or C and hit ENTER to make your selection")
print("Now, wh at is your favorate food from these options:")
print("A: Pizza")
print("B: Burgers")
print("C: Tacos")
favFood = input("Type the letter to answer: ")
favFood = favFood.capitalize()
print("-----")
if favFood == "A":
favFood = "Pizza"
print("MMMmmmm, I love", favFood, "too!")
elif favFood == "B":
favFood = "Burgers"
print("MMMmmmm, I love", favFood, "too!")
elif favFood == "C":
favFood = "Tacos"
print("MMMmmmm, I love", favFood, "too!")
print("-----")
print("Ok", favFood, "lover! Lets get this show on the road!")
print("-----")
print("You wake up in your bed to a loud noise. You look around with sleepy vision and see a sword lying next to you")
print("")