Skip to main content
For printing: PDF of the whole book, A4 A class without Book 2 does 0.1–0.3. A class after Book 2 starts with 0.3.

Activity 0.1. Square and hedgehog

For a class without Book 2. We draw. A square and a hedgehog with eight rays.

Goals

The child can. Builds a program from pairs and a function and predicts how many times the robot repeats the bottom row. New.
  • Pair: a command and one value. Function × 8 runs the bottom row 8 times.
  • 45 is half of a quarter turn.

Materials

One A4 sheet and one A3 sheet per group, tape. Tokens:
  • Function; repeats × 4, × 6, × 8;
  • Forward, Backward, Right;
  • numbers: 45, 100 (two), 150.

Lesson steps

  1. Opening, 5 min. Sheets on the table, tape the corners down. Show the finished square and hedgehog.
  2. Body, 3 min. A child walks a square on the floor: a step, a turn right. The class counts how many times the child did it.
  3. Predict, 7 min. The teacher shows the board for the square: the top row calls the bottom row. Guess: how many rays does the hedgehog have, and where does the first ray point?
  4. Robot, 20 min. The square on A4, then the hedgehog on A3. Own task: a square with a side of 150 on the back of the A4 sheet, change one token.
  5. Show, 7 min. In the notebook: “Function × 8 runs the bottom row 8 times.” The hedgehogs go on the floor.

Programs

Square

Start: the bottom-left corner of the square, the robot faces up. Board: top row Function × 4. Bottom row: Forward 100, Right. Run in the simulator

Program on the board

What the robot draws

Hedgehog

Start: the center of the sheet, the robot faces up. Board: top row Function × 8. Bottom row: Forward 100, Backward 100, Right 45. Run in the simulator

Program on the board

What the robot draws

Own task, square 150

Board: top row Function × 4. Bottom row: Forward 150, Right. Run in the simulator

Program on the board

What the robot draws

Answer

The square is 100 × 100 mm. The robot is back at the start and faces up. Hedgehog: 8 rays of 100 mm, the drawing is 200 × 200, the first ray points up. 4 quarter turns make a full turn, and so do 8 eighth turns. Square 150: change 100 to 150.

Find the error

In the hedgehog, someone put Function × 6 in the top row. What came out? (A hedgehog without two rays: there is no ray to the left and no ray up and to the left. The robot ended facing left.) Board: top row Function × 6. Bottom row: Forward 100, Backward 100, Right 45. Run in the simulator

Program on the board

What the robot draws

For fast finishers

A hedgehog with four rays. Which two tokens do you change? (× 8 to × 4, and take 45 off Right.) Board: top row Function × 4. Bottom row: Forward 100, Backward 100, Right. Run in the simulator

Program on the board

What the robot draws

Activity 0.2. Function contract: F and H

For a class without Book 2. We draw. The letters F and H, each on its own sheet.

Goals

The child can. Fills in the function contract: where the robot stands and where it faces before the call and after it. New.
  • Function contract: where the robot is before the call and after it.
  • You can call a function in two places of a program.

Materials

Two A4 sheets per group, a 100 × 100 mm frame in pencil, a contract card “before: … after: …”. Tokens:
  • Function (two); repeats × 2, × 3;
  • Forward (three), Backward, Left, Right;
  • numbers: 40, 50, 60, 100 (two).

For printing

Lesson steps

  1. Opening, 5 min. Sheets on the table, frames and start crosses in pencil. Show the finished F and H.
  2. Body, 3 min. “Tooth”: arm to the right, bring it back, step down. Two times. Where does the child stand and where does the child face after each tooth?
  3. Predict, 7 min. Fill in the contract for the F tooth on the card. Guess: where does the robot finish H, and where will it face?
  4. Robot, 20 min. F, then H. While the robot moves, the Programmer counts the calls out loud. Own task: make a comb from F, change one token.
  5. Show, 7 min. In the notebook: “Contract: where the robot is before the function and where it is after it.” The letters go on the floor.

Programs

F

Start: the top of the stem, the robot faces right. Board: top row Function × 2. Bottom row: Forward 100, Backward 100, Right, Forward 50, Left. Run in the simulator

Program on the board

What the robot draws

H

Start: the left stem, 60 mm from the bottom, the robot faces up. Board: top row Function, Right, Forward 100, Left, Function. Bottom row: Forward 40, Backward 100, Forward 60. Run in the simulator

Program on the board

What the robot draws

Own task, comb

Bottom row as for F. Board: top row Function × 3. Bottom row: Forward 100, Backward 100, Right, Forward 50, Left. Run in the simulator

Program on the board

What the robot draws

Answer

Tooth contract: before the call, the robot is on the stem and faces right. After the call, it is 50 mm lower and faces right again. This is why you can repeat the tooth. F: 100 × 100 mm. H: the function draws a stem and brings the robot back to where it was, facing up. Right, Forward 100, Left draws the crossbar and puts the robot at the start of the second stem. The finish is on the right stem, 60 mm from the bottom, facing up. Comb: 100 × 150, three teeth.

Find the error

The function for F has no last pair, Left. What came out? (The contract is broken: after the first tooth, the robot faces down. The stem got longer, up to 150 mm, and the second tooth sticks out to the left.) Board: top row Function × 2. Bottom row: Forward 100, Backward 100, Right, Forward 50. Run in the simulator

Program on the board

What the robot draws

For fast finishers

How many pairs would H take without a function? (9 pairs, but the top row has 6 places.)

Activity 0.3. Shorthand

We draw. A star or a letter from the shorthand that another group sent.

Goals

The child can. Turns a program on the board into shorthand and back. New.
  • Shorthand: F, B, L, R and FN ×N, the bottom row in square brackets.
We chose these letters on purpose: Logo (fd, bk, lt, rt) and Python (forward, back, left, right) have the same commands.

Materials

Notebook, A4 sheets, cards with the shorthand for the star and U, the simulator on the whiteboard. Tokens:
  • Function; repeats × 3, × 8;
  • Forward, Left, Right;
  • numbers: 100, 135, 150;
  • for “Find the error” and for fast finishers, also: a second Function, two Forward, Backward, a second Right, numbers 40, 45, 60 and a second 100.

For printing

Lesson steps

  1. Opening, 5 min. On the whiteboard: the star and its shorthand FN ×8 [F150 R135].
  2. Body, 3 min. The teacher reads FN ×4 [F R], the class walks a square.
  3. Predict, 7 min. Write in shorthand the square, the hedgehog, F and H from 0.1 and 0.2. A class after Book 2 takes the same drawings from Book 2.
  4. Robot, 20 min. The group gets a card with shorthand. The card has no picture of the board. Build, guess, run. Own task: write your program in shorthand for the next group, and build that group’s shorthand.
  5. Show, 7 min. In the notebook: “Shorthand is shorter than a picture of the board. The brackets show the bottom row.”

Programs

Star

Start: the robot faces right. Shorthand: FN ×8 [F150 R135]. Board: top row Function × 8. Bottom row: Forward 150, Right 135. Run in the simulator

Program on the board

What the robot draws

U

Start: the top of the left stem, the robot faces down. Shorthand: FN ×3 [F100 L]. Board: top row Function × 3. Bottom row: Forward 100, Left. Run in the simulator

Program on the board

What the robot draws

Answer

Square FN ×4 [F100 R]. Hedgehog FN ×8 [F100 B100 R45]. F FN ×2 [F100 B100 R F50 L]. H FN R F100 L FN [F40 B100 F60]. The star has eight points, 150 × 150 mm. U is 100 × 100.

Find the error

The neighbors sent the shorthand for H: FN R F100 R FN [F40 B100 F60]. Where is the error? (The second R must be L. The right stem came out 20 mm higher than the left one, and the robot ended facing down.) Bottom row as for H. Board: top row Function, Right, Forward 100, Right, Function. Bottom row: Forward 40, Backward 100, Forward 60. Run in the simulator

Program on the board

What the robot draws

For fast finishers

The teacher gives only a drawing of an octagon. Measure the side, count the angles and write the shorthand. (FN ×8 [F60 R45]: side 60 mm, 8 angles.) Board: top row Function × 8. Bottom row: Forward 60, Right 45. Run in the simulator

Program on the board

What the robot draws

Last modified on November 30, 2026