While Loop
Sandbox
Explanation
Notes to capture:
- pros and cons of the first program that meows 3 times
- what will cause a loop to run forever?
- code for a working while loop
- sketch the flow of a while loop (flowchart or just arrows with code)
- two ways of incrementing (adding 1 to a variable)
- relationship between a for loop and a list
- syntax for a list
- when does a programmer use the variable “_”