Closed ktiberius closed 6 months ago
there are many way to support this feature
this may be one of solutions
convert user answers and correct answers as str type and use in
str
in
if you allow user answers as list type, you may need to handle them with for loop
list
for
ex)
for each in user_answers: if str(each) in str(correct_answers): total_score += score break
however, I am now sure it makes sense which allows multiple user answers
there are many way to support this feature
this may be one of solutions
convert user answers and correct answers as
str
type and usein
if you allow user answers as
list
type, you may need to handle them withfor
loopex)
however, I am now sure it makes sense which allows multiple user answers