generated from mwc/lab_iteration
24 lines
409 B
Python
24 lines
409 B
Python
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)
|
|
|
|
|
|
|
|
|
|
def square(side_length):
|
|
scones = [ 20, 50, 27,8 ]
|
|
for score in scones:
|
|
forward(side_length)
|
|
right(90)
|
|
sizes = [20, 40, 60, 80, 100]
|
|
for size in sizes:
|
|
square(size)
|
|
input() |