0Pricing
Coding for Kids · Lesson

Drawing a Square House

Build the walls.

Drawing a Square House is a free Coding for Kids lesson on CoddyKit — lesson 1 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's Build a House! 🏠🐢

Today we start building a house with our turtle! 🏗️ First we need WALLS.

A house wall is just a big square. Let's draw one step by step! 🟦

import turtle

t = turtle.Turtle()
t.forward(100)

One Wall at a Time

The turtle starts by drawing the bottom of the house. It goes forward(100). ➡️

That's the floor of our house! 🏠

import turtle

t = turtle.Turtle()
t.forward(120)

Turn to Go Up ⬆️

After the bottom, we turn LEFT to go up the wall.

t.left(90) turns a quarter circle, so now the turtle points up! Then it goes forward again.

import turtle

t = turtle.Turtle()
t.forward(120)
t.left(90)
t.forward(120)

Across the Top

Now turn left again and draw the top of the house. 🏠

Each corner is a left(90) turn. We're going around the square!

import turtle

t = turtle.Turtle()
t.forward(120)
t.left(90)
t.forward(120)
t.left(90)
t.forward(120)

Close the Square ⬜

One more turn and one more wall, and the square is closed! 🎉

Four sides, four turns. That's our house frame!

import turtle

t = turtle.Turtle()
t.forward(120)
t.left(90)
t.forward(120)
t.left(90)
t.forward(120)
t.left(90)
t.forward(120)

The Easier Way: A Loop! 🔁

Writing forward and left 4 times is a lot! 😮‍💨 Let's use a loop instead.

for i in range(4): repeats the wall and turn 4 times. Same square, less typing! 🙌

import turtle

t = turtle.Turtle()
for i in range(4):
    t.forward(120)
    t.left(90)

Color the Walls 🎨

A house needs color! Let's make the walls brown like wood. 🟤

Use t.pencolor('brown') before we draw.

import turtle

t = turtle.Turtle()
t.pencolor('brown')
for i in range(4):
    t.forward(120)
    t.left(90)

Fill the House With Color 🪣

Let's paint the house yellow inside! 💛

Use begin_fill() before the loop and end_fill() after. The whole square fills in!

import turtle

t = turtle.Turtle()
t.fillcolor('yellow')
t.begin_fill()
for i in range(4):
    t.forward(120)
    t.left(90)
t.end_fill()

Make the Lines Thicker ✒️

Strong houses need strong walls! Use t.pensize(4) to make thick lines. 💪

Bigger number = thicker wall.

import turtle

t = turtle.Turtle()
t.pensize(4)
t.fillcolor('lightyellow')
t.begin_fill()
for i in range(4):
    t.forward(120)
    t.left(90)
t.end_fill()

A Bigger House 🏰

Want a bigger house? Just make the number in forward bigger! 📏

Try forward(150) for a mansion! 🏰

import turtle

t = turtle.Turtle()
t.fillcolor('orange')
t.begin_fill()
for i in range(4):
    t.forward(150)
    t.left(90)
t.end_fill()

Build Your Own Walls! 🏠

Your turn! Pick a fill color and a size for YOUR house. 🎨

Change 'pink' and the number in forward to whatever you like! 🩷

import turtle

t = turtle.Turtle()
t.fillcolor('pink')
t.begin_fill()
for i in range(4):
    t.forward(130)
    t.left(90)
t.end_fill()

Quick Check ✅

Let's test your house-building brain! 🧠🏠

Walls Done! 🏠🎉

Great job, builder! Your house has walls now! You learned:

  • A square has 4 sides and 4 turns of 90 🟦
  • for i in range(4): draws it with a loop 🔁
  • begin_fill() and end_fill() paint it 🪣

Next: add a ROOF! 🔺

Frequently asked questions

Is the “Drawing a Square House” lesson free?

Yes — the full text of “Drawing a Square House” 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 a Square House”?

Build the walls. 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 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Drawing a Square House” 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. Drawing a Square House
  2. Adding a Roof
  3. Doors and Windows
  4. A Sun and Sky
← Back to Coding for Kids