Skip to content
Permalink
10329503b1
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
52 lines (41 sloc) 1.32 KB
'''
sphinx story
is good
choice = input("Enter choice:\nA = []\nB = []\nC = []\n->")
'''
def start():
loop = True
while loop == True:
difficulty = input("Enter Difficulty:\nA = EASY\nB = MEDIUM\nC = HARD\n->")
if difficulty == "a" or difficulty == "A":
print("You have selected EASY")
loop = False
elif difficulty == "b" or difficulty == "B":
print("You have selected MEDIUM")
loop = False
elif difficulty == "c" or difficulty == "C":
print("You have selected HARD")
loop = False
else:
print("Please enter a valid option.")
# Main block
start()
loop = True
while loop == True:
print("You are reading a magazine. The phone rings.")
choice = input("Enter choice:"
"\nA = [Continue reading the magazine]"
"\nB = [Inspect the room]"
"\nC = [You pick up the phone]"
"\n->")
if choice == "a" or choice == "A":
print("You have selected A")
loop = False
elif choice == "b" or choice == "B":
print("You have selected B")
loop = False
elif choice == "c" or choice == "C":
print("You have selected C")
loop = False
else:
print("Please enter a valid option.")