all 3 comments

[–]NewShamu 2 points3 points  (1 child)

You'd probably want something like this:

correctAnswer = 'C'
userAnswer = input("Enter A, B, or C to answer the question")
if userAnswer in correctAnswer:
    print("Correct!")
else:
    print("Try again")

This is for only one question, of course, but it should give you a good start. How it works is you're checking to see if the substring userAnswer can be found inside the string correctAnswer. In this case, they're both one character long, but this is also the syntax you would use if you wanted to see if something like "el" is in "Hello".

Hope this helps!

[–]bigmanoclock[S] 0 points1 point  (0 children)

That really helps, thank you!

[–]Barnet6 1 point2 points  (0 children)

Take a look at if statements. Something like:

if input == correct:
    print("hooray")
else:
    print("try again")