Open project · after lesson 8: Guess the number
Write a quiz about something you know well. It asks every question in turn, says whether each answer was right, and finishes with a score.

These light up when your code uses them. Click one to see where you learned it.
Tick each one when it is true of your project. Nobody marks it: be honest with yourself.
questions = [
["What is the capital of Australia? ", "canberra"],
["How many legs does a spider have? ", "8"],
["What colour do you get from blue and yellow? ", "green"],
]for item in questions:
answer = input(item[0]).lower()if answer == item[1]:
print("Correct!")
score = score + 1
else:
print("Not quite. It was " + item[1] + ".")Tick every milestone first.
You built it with: