# Author: Scott Wehrwein
# Date: 04/26/2021
# Defines a function to draw a rectangle using a turtle.

def turtle_rectangle(tur, w, h):
    """ Draw a w-by-h rectangle with turtle tur.
        Postcondition: The turtle will end up where it started. """
    for i in range(2):
        tur.forward(w)
        tur.left(90)
        tur.forward(h)
        tur.left(90)
        
    
import turtle
t = turtle.Turtle()

turtle_rectangle(t, 20, 200)
turtle_rectangle(t, 200, 20)
