I have reached checkpoint 1

It was a little difficult at first. The way I tackled it was I thought about what needed to be repeated. I came to the conclusion that the 'side' itself needed to be repeated.
This commit is contained in:
Lauren Dawnkaski 2024-09-10 16:16:39 -04:00
parent c9a270051b
commit 0edd7574d2
1 changed files with 9 additions and 11 deletions

View File

@ -1,16 +1,14 @@
from turtle import *
def square(side_length):
forward(side_length)
right(90)
forward(side_length)
right(90)
forward(side_length)
right(90)
forward(side_length)
right(90)
sides=[1, 2, 3, 4]
for sides in sides:
forward(side_length)
right(90)
sizes = [20, 40, 60, 80, 100]
for size in sizes:
square(size)
square(50)
input()