Codele / Programming basics
Your first program: a quiz game
Time to build something real. A three-question quiz uses nearly everything you have learned. Choose your answers and watch the game play.
- A real program is small ideas joined: lists, a loop, an if, a variable and a function.
- Lists that line up by position let one loop handle every question.
- The loop repeats the same steps. The if decides what each round does.
- A score variable remembers across rounds. A function packages the ending.
- Plan first on paper: what do I store, what repeats, what decides, what do I show?
Loading the playable lesson…