0Pricing
Coding for Kids · Lesson

Adding a Roof

Draw a triangle.

Time for a Roof! 🔺🏠

Our house has walls but no roof! 🌧️ It would get wet inside!

A roof is a triangle on top. Let's learn to draw one! 🔺

import turtle

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

A Triangle Has 3 Sides 🔺

A triangle has 3 equal sides. At each corner the turtle turns 120 degrees.

Why 120? Because 360 ÷ 3 = 120! The turtle goes all the way around. 🔄

import turtle

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

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