Handle different casings

This commit is contained in:
Firepup Sixfifty 2024-08-21 09:39:02 -05:00
parent 7a227dc1f4
commit 8660f6e8dc
Signed by: Firepup650
SSH key fingerprint: SHA256:cb8sEJwc0kQJ6/nMUhscWRe35itf0NFMdSKl3v4qt48

View file

@ -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")