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