Ask coding questions

← Back to all posts
Making a multiple question quiz
EddThe (7)

how can I do to make multiple question quiz?

Comments
hotnewtop
PYer (4015)

Create multiple if statements.

if input('Answer 1: ') == '351':
    print('Correct') # Or run some other code
if input('Answer 2: ') == '513':
    print('Correct') # Or run some other code again

Please mark as answer