Skip to content

Variables and DECLARE

A variable stores one value

  • A variable has a name and holds one value you can change.
  • The 2026 guide writes names in mixed case, starting with a letter: NumberOfPlayers or numberOfPlayers.
  • These lessons use a capital first letter, the same shape as the guide's own examples.

Lives starts empty, Lives ← 3 stores 3, Lives ← Lives - 1 replaces it with 2, and OUTPUT Lives shows 2

Handout

Log in or create account

IGCSE, A-Level & AP