Loops

Topic

Loops

Topic Progress:

When you make code you sometimes want sections of code to repeat itself, this can be done with loop blocks.

There are three main types of loops: repeat forever, repeat a certain amount of times and repeat until.

The first loop, forever as shown below will repeat the code inside forever until the program is stopped.

The second, repeat a certain amount of times will repeat itself as many times as the number beside it so the block below will repeat the code 10 times before continuing on

The last type of loop is, repeat until and will keep repeating the code inside until a certain condition is met which you drag inside of the hexagon shape beside the word until. (Conditions are in the next lesson)

Course Discussion

@

Not recently active