0Pricing
Coding for Kids · Lesson

Many Shapes

Draw lots of shapes.

Many 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.

Draw Lots of Shapes! 🔺🟦⭐

One shape is fun, but LOTS of shapes is even better! 🎉

Today we'll learn how to draw many shapes without writing the same code over and over. Let's go! 🚀

import turtle

t = turtle.Turtle()
t.circle(40)

A Loop Repeats Things 🔁

Writing the same line 4 times is tiring! 😫

A loop lets us repeat code. for i in range(4): means 'do this 4 times!' 🔁

for i in range(4):
    print('Hello!')

A Square With a Loop

A square is 4 sides, each the same. Perfect for a loop! 🟦

We repeat forward and right(90) four times. Don't forget to indent (push the lines in)!

import turtle

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

Change the Number, Change the Shape!

Magic trick! 🪄 Change range(4) to range(3) and turn 120 degrees... you get a TRIANGLE! 🔺

The turn is always 360 divided by the number of sides.

import turtle

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

A Pentagon (5 Sides) ⬠

Five sides! Turn 72 degrees (that's 360 ÷ 5).

The more sides, the rounder it looks! Try a hexagon (6 sides) too! 🛑

import turtle

t = turtle.Turtle()
for i in range(5):
    t.forward(70)
    t.right(72)

Move Without Drawing ✈️

To draw shapes in different spots, lift the pen! 🖊️⬆️

t.penup() lifts the pen (no line), and t.pendown() puts it back down to draw again.

import turtle

t = turtle.Turtle()
t.circle(30)
t.penup()
t.forward(100)
t.pendown()
t.circle(30)

Three Circles in a Row 🔴🔴🔴

Let's use a loop to draw 3 circles, moving between each one!

Each time: draw a circle, lift the pen, move over, put the pen down. 🎨

import turtle

t = turtle.Turtle()
for i in range(3):
    t.circle(30)
    t.penup()
    t.forward(80)
    t.pendown()

Colorful Circles 🌈

Let's make each circle a different color! We can put a list of colors and pick a new one each loop.

Use colors = ['red', 'blue', 'green'] and grab colors[i] each time! 🎨

import turtle

t = turtle.Turtle()
colors = ['red', 'blue', 'green']
for i in range(3):
    t.pencolor(colors[i])
    t.circle(30)
    t.penup()
    t.forward(80)
    t.pendown()

Spin to Make a Flower 🌸

If you draw a shape and turn a little each time, it spins into a flower! 🌼

Draw a circle, turn 60 degrees, repeat 6 times. So pretty! 💐

import turtle

t = turtle.Turtle()
for i in range(6):
    t.circle(50)
    t.right(60)

A Burst of Lines ✨

Spinning lines make a starburst! 🌟

Go forward, come back, turn a bit, repeat. We turn 36 degrees to make 10 lines all the way around!

import turtle

t = turtle.Turtle()
for i in range(10):
    t.forward(80)
    t.backward(80)
    t.right(36)

Make Your Own Shape Party! 🎉

Your turn! Change range(8) to any number and change the turn. 🌀

More repeats = more shapes spinning around. Experiment and make something amazing! 🤩

import turtle

t = turtle.Turtle()
for i in range(8):
    t.circle(40)
    t.right(45)

Quick Check ✅

Brain power time! 🧠⚡

Shape Master! 🏆🔺

Wow, look at all those shapes! Today you learned:

  • for i in range(4): repeats code 🔁
  • Change the number to draw different shapes 🔺🟦⬠
  • penup() and pendown() move without drawing ✈️
  • Spinning shapes make flowers and bursts! 🌸✨

Next: make a whole colorful pattern! 🎨

Frequently asked questions

Is the “Many Shapes” lesson free?

Yes — the full text of “Many 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 “Many Shapes”?

Draw lots of shapes. 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 “Many 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. Turtle Colors
  2. Filling Shapes
  3. Many Shapes
  4. A Colorful Pattern
← Back to Coding for Kids