From 6c7dcff5129a4c57ece8f6d9bc629db259f78794 Mon Sep 17 00:00:00 2001 From: Manan Patel Date: Tue, 29 Oct 2019 18:33:11 -0400 Subject: [PATCH 1/2] added consistency and updated the docs --- .DS_Store | Bin 0 -> 6148 bytes README.md | 2 +- question.py | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..e9321d7cb241315e9283791242c64055a8e4bf67 GIT binary patch literal 6148 zcmeHKI|>3p3{6x-u-VdbuHX#@(Gz$9Q5!*6LG8ElTprDr4}z>Vf{naD@@6u5v+OH2 z8xhgPbw3wrL}UUtl$(XV*|~Yo2ANSH9Cz&Gyg%=b+qOOSs^2G!JC=*Ia+1Rr{P(vq zO9iL^6`%rCfC_w4zVePX7uvh|E z6T3iUU>a0lP&G#k4Lb5A>uO>b7x z|1kf*lDMM+RN$`^(9v?eT;P?mxAtDndToJk;8t^on_=w~1aHScZ^zhJJDzz_)D>If Wye4*mPDkG9K>iGvE;K6eYXu&(R~4WD literal 0 HcmV?d00001 diff --git a/README.md b/README.md index 808b3e7..5f21de9 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ A simple quiz game built using Python (b) Exit. 4. Pick your interest - (a) Science (b) History of India (c) Commerce (d)Technology (e)World GK + (1) Science (2) History of India (3) Commerce (4)Technology (5)World GK You'll be presented with domain specific questions. diff --git a/question.py b/question.py index eb8b6ca..80787bd 100755 --- a/question.py +++ b/question.py @@ -7,7 +7,7 @@ def ask_one_question(question): print("\n" + question) - choice = input("Enter Choice [a/b/c/d]: ") + choice = input("Enter Your Choice [a/b/c/d]: ") while(True): if choice.lower() in ['a', 'b', 'c', 'd']: return choice @@ -29,7 +29,7 @@ def score_one_result(key, meta): def test(questions): score = 0 - print("General Instructions:\n1. Please enter only the choice number corresponding to the correct answer.\n2. Each question carries 2 points\n3. Wrong answer leads to -1 marks per question\nGood Luck!\n") + print("General Instructions:\n1. Please enter only the choice letter corresponding to the correct answer.\n2. Each question carries 2 points\n3. Wrong answer leads to -1 marks per question\nQuiz will start momentarily. Good Luck!\n") time.sleep(10) for key, meta in questions.items(): questions[key]["user_response"] = ask_one_question(meta["question"]) @@ -51,7 +51,7 @@ def load_question(filename): def play_quiz(): flag = False try: - choice = int(input("Welcome to Today's Quiz!\nChoose your domain of interest:\n(1). Science\n(2). History of India\n(3). Commerce\n(4). Technology\n(5). World Gk\n Enter your choice: ")) + choice = int(input("Welcome to Today's Quiz!\nChoose your domain of interest:\n(1). Science\n(2). History of India\n(3). Commerce\n(4). Technology\n(5). World Gk\nEnter Your Choice [1/2/3/4/5]: ")) if choice > len(TOPICS_LIST) or choice < 1: print("Invalid Choice. Enter Again") flag = True # raising flag From 79de87dfe9a47225238e1b48f4c9e28ab6dcf2f0 Mon Sep 17 00:00:00 2001 From: Manan Patel Date: Tue, 29 Oct 2019 18:34:46 -0400 Subject: [PATCH 2/2] updated md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5f21de9..593adf6 100644 --- a/README.md +++ b/README.md @@ -45,4 +45,5 @@ A simple quiz game built using Python Kamuish chanchalv18 dvfleet413 + Manan311 ```