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.
12 steps ยท about 20 min
By the end you can
- Write if ... else ..., where exactly one of two bodies runs
- Use brackets in a formula inside a body
- Sort a value into bands with if, elif and else
- Explain why the order of the questions matters
Who it is for: After lesson 2.2: you can write an if with an indented body.
The steps
- One or the other
- else: the other way
- Run it
- Exactly at the limit
- A fine that grows
- elif: more than two ways
- Which band?
- Sort a speed
- The order matters
- Spot the bug
- km/h first
- In your own words
Discussion 0 comments
Log in to join the discussion.