def drawing(): dr = DrawingRobot() dr.pendown() for i in range(1,20): dr.forward(i * 6) dr.right(90) dr.penup(); dr.dump_commands() turtle.done()