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.
11 steps ยท about 20 min
By the end you can
- Write a while loop with a condition and an indented body
- Say when a while loop checks its condition, and when it stops
- Use a while loop to find the first whole second something happens
- Spot and fix a loop that never ends, and stop it with the Stop button
Who it is for: After lesson 2.6: you can print a table of free fall with a for loop.
The steps
- How long to fall 100 m?
- while: as long as
- The 100 m program
- Run it
- When does it check?
- Never at all
- Write the condition
- The loop that never ends
- Which one never ends?
- Fix the loop that never ends
- for or while?
Discussion 0 comments
Log in to join the discussion.