Repeat Blocks: Course A-B
-
0:06 - 0:14This is a repeat block. The code inside a
repeat block will repeat, or "loop" as many -
0:14 - 0:15times as you'd like.
-
0:15 - 0:19In puzzles with loops, code that looks like this, works
-
0:19 - 0:22exactly the same as code like this.
-
0:22 - 0:25When you see the same blocks repeated over
-
0:25 - 0:27and over many times in a row, like this,
-
0:27 - 0:30that's a clue that you could make your
-
0:30 - 0:34code shorter by moving the repeated
section into a repeat block. -
0:34 - 0:36Now let's give it a try!
|
Code.org edited English subtitles for Repeat Blocks: Course A-B | |
|
Code.org edited English subtitles for Repeat Blocks: Course A-B |
