I am currently in the process of making a quiz in Python, all the questions are stored in a csv database. I am having difficulty in having multiple answers to one question in the quiz. Note: I do not have the code on this computer so I quickly made something up along the lines of the real thing, the version below does not include everything:
file=open("easydatabase.csv","r") answer = input("\n" + detail[0]) for line in file: details=line.split(",") if details[1] == answer: total = total + 1 print("Correct! Added 1 to your score.")The main issue I am having is having the correct answer to be equal to multiple cells in the csv file, thanks in advanced for the help! (I was trying different things such as writing 'details[1,2]' but I had no luck)