Python course · Chapter 2

Variables

Storing values, naming things, numbers, text and True/False.

Project: an about-me card.

  1. 2.1Storing valuesGive a value a name, then use the name instead of the value.6 steps · about 20 minutes · 0 of 3 challenges passedStart →
  2. 2.2Changing valuesA variable holds one value at a time: store a new one and the old one is gone.6 steps · about 20 minutes · 0 of 3 challenges passedOpen →
  3. 2.3Naming variablesThe rules names must follow, and the habit of names that say what they hold.5 steps · about 15 minutes · 0 of 2 challenges passedOpen →
  4. 2.4Kinds of valueWhole numbers, decimals, text and True/False — and why Python cares which is which.6 steps · about 20 minutes · 0 of 3 challenges passedOpen →
  5. 2.5Project: about-me cardPut the chapter together: a card drawn from variables, so one change updates the lot.4 steps · about 15 minutes · 0 of 2 challenges passedOpen →
  6. CheckCheckpointFour mixed questions on variables, with Chapter 1 mixed back in. Pass them all to finish the chapter.1 steps · about 10 minutes · 0 of 4 challenges passedOpen →