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.
This commit is contained in:
mollychi
2025-09-01 10:39:39 -04:00
parent 1684f220f5
commit 9ab9c0d5d3

View File

@@ -9,14 +9,14 @@ from turtle import (
)
forward(100)
right(360 * 2 / 5)
left(360 * 1 / 4)
forward(100)
right(360 * 2 / 5)
right(360 * 1 / 4)
forward(100)
right(360 * 2 / 5)
left(360 * 1 / 4)
forward(100)
right(360 * 2 / 5)
right(360 * 1 / 4)
forward(100)
right(360 * 2 / 5)
left(360 * 1 / 4)
input()