← Python course

Lesson 07

First project: a quiz game

Putting variables, decisions, loops, lists, and functions together.

This is the first lesson with no new syntax — just you, combining everything from lessons 1 through 6 into something real.

A quick note: our in-browser editor can't pause and wait for you to type an answer like a real terminal can, so instead of typing answers live, we'll store the player's answers in a list ahead of time and have the program check them. Real quiz apps often work exactly this way — answers collected first, checked after.

Loading editor…

Read it slowly — every piece is something you already know:

Nothing here is new. This is what programming actually looks like — small ideas, stacked.

Your turn

Write your own 3-question quiz about something you know well — a game, a show, a sport. Change the questions, answers, and try giving yourself a wrong answer on purpose to see the "Nope" message.

Loading editor…

Next lesson: saving things permanently, by reading and writing files.