Doors and Windows
Add details.
Add Doors and Windows! 🚪🪟
Our house has walls and a roof, but how do we get inside? 🤔 We need a DOOR!
And to see outside, we need WINDOWS! Let's add the details today. 🏠✨
import turtle
t = turtle.Turtle()
t.forward(50)Move Without Drawing 🖊️⬆️
To put a door in the right spot, we move WITHOUT drawing a line.
t.penup() lifts the pen. t.goto(x, y) jumps to a spot. t.pendown() starts drawing again! ✈️
import turtle
t = turtle.Turtle()
t.penup()
t.goto(50, 0)
t.pendown()
t.forward(40)All lessons in this course
- Drawing a Square House
- Adding a Roof
- Doors and Windows
- A Sun and Sky