Handle different casings
This commit is contained in:
parent
7a227dc1f4
commit
8660f6e8dc
1 changed files with 2 additions and 2 deletions
4
main.py
4
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")
|
||||
|
|
Loading…
Reference in a new issue