Drawing with Turtle

In this introduction to Wipple, students learn about sequencing and repetition by drawing a spirograph.

Duration: 1 hour
Required Materials: Laptops, projector, spirograph kits
MA DLCS Standards: 6-8.CT.b.1, 9-12.CT.a.1, 9-12.CT.d.5


The big idea


Students will be able to…


Progression


Key vocabulary


Lesson plan

  1. Warm up: Spirograph (10 mins) — Split class into groups of three (the artist, the translator, and the writer).

    Groups work to draw a spirograph. Encourage students to count out loud with each rotation of the pen. Then, exchange instructions with another group, and ask each group to flip over their paper and follow the instructions exactly as written to draw the new shape.

    Have groups turn to each other and share their drawings. Were their instructions followed as intended? What would they change about their instructions?

    Finally, discuss as a class how this activity could relate to coding.

  2. Guided practice: Setting up Wipple (10 mins) — Put away the spirograph kits, and direct students to open their computers and go to wipple.org. Follow the instructions in the slideshow so that all students can make the turtle draw a simple shape using the Movement commands (forward, backward, left, and right). Then, direct students to experiment with the dropdowns and the order of the commands — how does changing the order change the shape drawn by the turtle?

  3. Turn and talk: The repeat command (5 mins) — In the same groups of three, count the number of commands in each student’s program. Referencing their spirograph instructions, students brainstorm ways they could reduce the number of commands (listen for words like "repeat", "times", and "again"). Encourage groups to explore the menu and find a command that could help.

    Once students have identified repeat in the menu, they can apply it to their shape to tile it across the screen.

  4. Challenge activity: Spirograph (30 mins) — Challenge students to use repeat to draw their own spirograph. Encourage them to collaborate at their tables. When time is up, ask them to save a PDF of what they have using the Print button.

  5. Discuss: Abstraction (2 mins) — Students discuss in their groups why repeat was useful for drawing the spirograph.

  6. Exit ticket (3 mins) — Have students upload the PDF of their code and answer the questions in the slideshow on their own. You may use a Google Form or other online survey. If a printer is available in the classroom, have students line up once they have submitted their exit ticket and print their drawings for them so they can take them home. As students wait to be picked up, present their drawings on the board.


Extensions


Universal design


Worked example: Square without repeat

  1. Begin by dragging forward into the code editor. The turtle will move forward.

  2. Then, drag left into the code editor below forward. The turtle will move forward, and then turn left. Explain how each line is its own command; the computer runs commands one by one from top to bottom.

  3. Repeat this process to draw all four sides of the square, and count the total number of commands.

Result:

forward (50 pixels)
left (90 degrees)
forward (50 pixels)
left (90 degrees)
forward (50 pixels)
left (90 degrees)
forward (50 pixels)

Worked example: Square with repeat

  1. Remove the duplicated commands, leaving only the first forward and left.

  2. Then, drag repeat into the code editor and change the dropdown to 4. The turtle will still draw a square.

  3. Explain how repeat runs the commands between the braces ({ }) multiple times. When it reaches the end brace (}), it goes back to the beginning brace ({) until all the commands have run the specified number of times.

  4. Imagine you wanted to draw a bigger square. Without repeat, you would have to change the length of each side individually. But with repeat, you only have to change it once. repeat is a form of abstraction over how many times the program runs, allowing you to do the same thing with fewer commands.

Result:

repeat (4 times) {
  forward (50 pixels)
  left (90 degrees)
}

Sample student responses