Computer Science 2026

HCC Website | Computer Science 2026

Assignment: Make a Quiz

Due 10/1 at 11:59

Make a quiz about something you’re passionate about! Sports, music, games… the sky is the limit. Your quiz should follow these specifications:

To accomplish this you will need to use if statements to do different things based on user input.

When a user answers a question correctly, you should add 1 to a score variable. When a user answers a question incorrectly, do nothing. At the end of the quiz, you should print the user’s score.

To add 1 to a score variable, you can use the += operator. For example:

score = 0

# If the user answers a question correctly, add 1 to the score like this:
score += 1

Your questions may be multiple choice, true/false, or fill in the blank. Make sure to tell the user the expected format for their answer. For example, if the question is “What is the capital of France?”, the user should answer “Paris” (uppercase) not “paris” (lowercase).

When you’ve finished, have a friend or family member try out the quiz!

When you’re happy with your quiz, download the .py file and submit it on Thinkwave.