0Pricing
Coding for Kids · Lesson

Drawing Shapes

Make squares and triangles with loops.

Drawing Shapes is a free Coding for Kids lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Coding for Kids learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Let Us Draw Shapes!

Hello shape master! 🔺⬜ Today our turtle draws full shapes like squares and triangles!

A Square Has 4 Sides

A square is just: walk, turn, walk, turn... 4 times! 🟦

Each turn is 90 degrees.

Square the Long Way

Here is a square written out fully. Count the four sides! ⬜

import turtle

t = turtle.Turtle()
t.forward(100)
t.right(90)
t.forward(100)
t.right(90)
t.forward(100)
t.right(90)
t.forward(100)
turtle.done()

So Much Repeating!

Whew, we typed the same thing 4 times. 😅

There is a smarter way. We can use a loop!

Loops Repeat for Us

A for loop repeats steps for us. 🔁

for i in range(4): means "do this 4 times".

Square With a Loop

Same square, but short and tidy! Watch the loop magic! ✨

import turtle

t = turtle.Turtle()
for i in range(4):
    t.forward(100)
    t.right(90)
turtle.done()

Same Square, Less Typing

The loop did the walk-and-turn 4 times for us! 🎉

Less typing, same beautiful square. ⬜

Triangles Have 3 Sides

A triangle has 3 sides. For a triangle, the turtle turns 120 degrees each time. 🔺

Triangle With a Loop

Just change 4 to 3 and 90 to 120. Magic! 🔺

import turtle

t = turtle.Turtle()
for i in range(3):
    t.forward(100)
    t.right(120)
turtle.done()

Shapes Are Just Patterns

See the pattern? Walk and turn, repeated! 🔁

More sides = more repeats and smaller turns. You can make pentagons too! ⬠

Shape Wizard!

You drew squares and triangles using loops. 🧙 Loops save us so much work!

Next: adding colors! 🌈

Quick Check

Shape brain check! 🧠

Shapes Complete!

Brilliant! 🏆 You can draw shapes with loops.

Next lesson makes them colorful and pretty! 🎨

Frequently asked questions

Is the “Drawing Shapes” lesson free?

Yes — the full text of “Drawing Shapes” is free to read here on the web, and the Coding for Kids course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Coding for Kids course, upgrade to CoddyKit PRO.

What will I learn in “Drawing Shapes”?

Make squares and triangles with loops. You practise Coding for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Coding for Kids?

No prior experience is required. Coding for Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Drawing Shapes” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Coding for Kids lesson?

Yes. Every Coding for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Meet the Turtle
  2. Drawing Lines and Turns
  3. Drawing Shapes
  4. Adding Colors
← Back to Coding for Kids