Editor

Draw a Staircase

Draw this picture · Beginner · about 4 min

Draw a staircase of 5 steps going up to the right. The turtle starts in the center, facing right. Each step is a flat line 40 long going right, then a line 40 long going straight up. Start with the flat line of the bottom step, and finish with the line going up from the top step.

The picture
Your drawing

Run your program to see it here.

import turtle
t = turtle.Turtle()
t.forward(40)
The solution opens after your first Check.