Choi-Hong-Jun / OMR

omr scanning application
2 stars 0 forks source link

Support multiple answers #2

Closed ktiberius closed 4 months ago

ktiberius commented 4 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

if you allow user answers as list type, you may need to handle them with for loop

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