From 10329503b16f272a808b4c4639b3e0b88871581a Mon Sep 17 00:00:00 2001 From: mohammed masud Date: Thu, 1 Oct 2020 13:07:42 +0100 Subject: [PATCH] typing git comming in the command line makes you edit a message like i am doing now --- main.py | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 20a6c22..59d536c 100644 --- a/main.py +++ b/main.py @@ -3,6 +3,8 @@ sphinx story is good +choice = input("Enter choice:\nA = []\nB = []\nC = []\n->") + ''' @@ -11,7 +13,6 @@ def start(): 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") @@ -25,5 +26,27 @@ def start(): else: print("Please enter a valid option.") + # Main block -start() \ No newline at end of file +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.")