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:
|
while not False:
|
||||||
answer = fp.replitInput(
|
answer = fp.replitInput(
|
||||||
f"Please input the answer to question #{answerCount + 1}, empty answer to submit answer key"
|
f"Please input the answer to question #{answerCount + 1}, empty answer to submit answer key"
|
||||||
)
|
).upper()
|
||||||
if not answer:
|
if not answer:
|
||||||
break
|
break
|
||||||
answerCount += 1
|
answerCount += 1
|
||||||
|
@ -25,7 +25,7 @@ while 1:
|
||||||
for i in range(answerCount):
|
for i in range(answerCount):
|
||||||
answer = fp.replitInput(
|
answer = fp.replitInput(
|
||||||
f"Please input the student's answer to question {i + 1}. ^C at any time to show results immediately."
|
f"Please input the student's answer to question {i + 1}. ^C at any time to show results immediately."
|
||||||
)
|
).upper()
|
||||||
if answer == answerKey[i]:
|
if answer == answerKey[i]:
|
||||||
right += 1
|
right += 1
|
||||||
print(" That is correct")
|
print(" That is correct")
|
||||||
|
|
Loading…
Reference in a new issue