Python - 10

Python - 10: Mini Project - Build a Simple Quiz

Congratulations! Let's combine everything you've learned to build a simple quiz game.

✦ Python Editor
▶ Output

👀 Show Example Solution
print("Welcome to the Quiz!")

score = 0

answer1 = input("What planet do we live on? ")

if answer1 == "Earth":
    print("Correct!")
    score = score + 1

answer2 = input("What is 5 + 5? ")

if answer2 == "10":
    print("Correct!")
    score = score + 1

answer3 = input("What language are you learning? ")

if answer3 == "Python":
    print("Correct!")
    score = score + 1

print("Your Final Score:")
print(score)