Makinde Adeagbo teaches While Loops
-
0:04 - 0:07While loops are pretty similar to what you do in everyday life.
-
0:07 - 0:10Imagine you are washing your car
-
0:10 - 0:12and you will keep scrubbing until it's clean.
-
0:12 - 0:16So while it's not clean, you continue to scrub.
-
0:16 - 0:18So you are evaluating the stains all the time.
-
0:18 - 0:22Hey there ! You got a new loop to help your farmer out.
-
0:22 - 0:25It's called a “while” loop. It's pretty simple actually.
-
0:25 - 0:29While the statement at the top is true, do something.
-
0:29 - 0:34For example, while there is a pile, remove one shovel full.
-
0:34 - 0:36Go ahead and give it a try with your farmer.
Cerbaz edited English subtitles for Makinde Adeagbo teaches While Loops |