Skip to content
Your progress

Checking your sign-in…

Who's learning?

Each profile keeps its own read lessons, badges, streak, and practice scores on this device.

Lesson 3 of 8

A named group that takes a number

Show on a big screen

7 min

Text size

Chalk rows can be different lengths. Do you need a new block for each row?

In the steps below, n stands for the number of dots.

One definition: draw a row of n dots.
Step 1 of 4
  1. One definition: draw a row of n dots.
  2. Call it with 5: five dots.
  3. Call it with 6: six dots.
  4. Call it with 4: four dots.

No. One named block can draw rows of different lengths.

The rule

A named block can take a number. The same lines run each time, on the number you hand in.

A parameter is a box on the block. The number you hand in goes into the box. To hand in a number means to give it to the block.

One block, called three times
CallNumber handed inDots drawn
155
266
344

Three calls draw 5 + 6 + 4 = 15 dots in all. There is still only one definition.

Hand in a number. Call the block.

Loading lab…

Try the lab to finish this lesson.