lab_iteration/draw_shapes_inside_shapes.py

25 lines
346 B
Python

# shapes.py
# ---------
# By MWC contributors
from turtle import *
pendown()
def rectangle(height_width):
forward(height_width)
right(90)
forward(height_width)
right(90)
forward(height_width)
right(90)
forward(height_width)
right(90)
rectangle(100)
rectangle(80)
rectangle(60)
rectangle(40)
rectangle(20)