Files
lab_turtle/drawing.py
mollychi 9ab9c0d5d3 I started by changing the angles of the right turns to 90 degrees turns becuase at first glace without reading the math, thats what i assumed the code would do, not 144 degree turns lol. I thought this would make a stair case, i was wrong, a bunch of right turns makes a square lol. I then changed it to be left right left right alternating to create the staircase i wanted.
I felt a little silly at some points like "oh yeah 4 rights do make a circle", but i also felt cool being able to make the picture i sought after. I tried to do two pictures in one drawing and i failed, so i think i would be inetertsed in see if/how we could do that, but as it wasnt part of the assignment today, i just decided to put that question on the back burner.
2025-09-01 10:39:39 -04:00

23 lines
269 B
Python

from turtle import (
forward,
back,
left,
right,
penup,
pendown,
color,
)
forward(100)
left(360 * 1 / 4)
forward(100)
right(360 * 1 / 4)
forward(100)
left(360 * 1 / 4)
forward(100)
right(360 * 1 / 4)
forward(100)
left(360 * 1 / 4)
input()