We changed the shapes.py code to make it repeat

with list iteration
This commit is contained in:
kdang
2025-09-23 09:48:20 -04:00
parent cfe0b8e41a
commit 4e38e7d73a

View File

@@ -1,12 +1,7 @@
from turtle import *
def square(side_length):
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)