Question: IN PYTHON with comments please 1a. 1b. Write a function named rectangle() that uses turtle graphics to draw a rectangle of specified dimensions. The function
IN PYTHON with comments please
1a.

1b.


Write a function named rectangle() that uses turtle graphics to draw a rectangle of specified dimensions. The function rectangle() takes three parameters: i. t, a turtle that is used for drawing ii. sizel, the length of the first (and third) side of the rectangle iii. size2, the length of the second (and fourth) side of the rectangle 1 The function rectangle () should draw a rectangle beginning at the initial position and orientation of t, and should leave t with the same position and orientation on exit. Do not make any assumptions about the initial state of the turtle. For full credit you must use a loop for repeated operations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
