Join free to take this lesson
Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.
13 steps ยท about 20 min
By the end you can
- Store a number under a name with =
- Read = as โstoreโ, not as โequalsโ
- Use stored names in a sum, such as distance / time
- Choose names Python accepts
- Fix a NameError caused by a name that was never set
Who it is for: Anyone who has done lesson 1.1 (print and the arithmetic signs).
The steps
- A first guess
- A variable is a labelled box
- = means โstoreโ
- Reading =
- Run a program with a variable
- Names in a sum
- Speed from two names
- Choosing names
- Which name can Python use?
- Set a name before you use it
- Why the error?
- Fix the name
- In your own words
Discussion 0 comments
Log in to join the discussion.