Return to Video

Nested Loops with the artist in Course 4

  • 0:05 - 0:11
    When you put a loop inside of another loop,
    we call that a nested loop. For example, here
  • 0:11 - 0:17
    we're given the code already to draw one triangle
    with sides of length 100 pixels using the
  • 0:17 - 0:22
    repeat times block set to three, once for
    each side of a triangle. But we want to draw
  • 0:22 - 0:27
    six triangles. In order to do that, we're
    going to take that loop and place it inside
  • 0:27 - 0:30
    of another repeat times block. Pretty cool!
Title:
Nested Loops with the artist in Course 4
Description:

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

English subtitles

Revisions