Return to Video

Makinde Adeagbo teaches While Loops

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

more » « less
Video Language:
English, British
Team:
Code.org
Project:
CSF '21-'22
Duration:
0:38

English subtitles

Revisions