From 8660f6e8dc6cd5461b179a2adc4c0c1513d5eabf Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Wed, 21 Aug 2024 09:39:02 -0500 Subject: [PATCH] Handle different casings --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 90193bb..215bdad 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,7 @@ fp.clear() while not False: answer = fp.replitInput( f"Please input the answer to question #{answerCount + 1}, empty answer to submit answer key" - ) + ).upper() if not answer: break answerCount += 1 @@ -25,7 +25,7 @@ while 1: for i in range(answerCount): answer = fp.replitInput( f"Please input the student's answer to question {i + 1}. ^C at any time to show results immediately." - ) + ).upper() if answer == answerKey[i]: right += 1 print(" That is correct")