Real Time Quiz Marker


Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

answers = ["C", "B", "C", "A", "D", "A", "B", "D", "D", "C"]

responses = ["C", "B", "C", "A", "D", "A", "B", "D", "D", "C"]

if responses[-1] == answers[len(responses)-1]: correct = True else: correct = False

if not correct: del responses[-1] print("Sorry, please try the last question again!")

elif len(responses) < len(answers): print('Quiz not complete.') correct = string(len(responses)) print("You've got " + correct + " answers correct so far, please add an answer for the next question.")

else: print("Well done, you have completed the quiz!")

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content