Edited the code and shortened it

This commit is contained in:
klinn
2026-02-11 10:59:28 -05:00
parent 6732e542b6
commit 3849535b47
3 changed files with 23 additions and 8 deletions

View File

@@ -1,14 +1,10 @@
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)
for i in range(4):
forward(side_length)
right(90)
sizes = [20, 40, 60, 80, 100]
for size in sizes: