Ask coding questions

← Back to all posts
Questions about right and wrong code
EMMAJACOBS

Im making a project about a quiz. I need to know how to do the right or wrong answer for my project called "Quiz Master". Please respond as soon as you can.

Voters
Flyingcrabs
EMMAJACOBS
Comments
hotnewtop
xXJohnDoeXx

You could use if question == 'the answer': #what you want it to do if correct, if that works please mark this as the answer.

Dunce

What exactly are you looking for? Do you want to subtract a point when a question is answered incorrectly? Or do you want to give multiple options, or what?

staps

Hello @EMMAJACOBS, to add 'Correct' or 'Incorrect' Answers you can use the code
user_reply = input ('Question')

EMMAJACOBS

I added my project im working on

EMMAJACOBS

It did not work im still looking for answers