Question: solve by using python Problem 12 Part A (10 points) Write a function named stair() t hat takes two parameters: Input: t -- a turtle

solve by using python

Problem 12 Part A (10 points) Write a function named stair()that takes two parameters:

Input: t -- a turtle treadSize

stair() should draw a rectangle, the long sides of which are of

length treadSize and the short sides are of length treadSize/4 (see illustration below).

Part B (10 points) Write a function named stairs() that takes three parameters:

Input: size, num, offset,

should call stair() repeatedly to draw num stairs, each with long sides of length size, and with

each stair offset to the right and above the preceding one by distance offset.

For example, the function call stairs(50, 5, 25) should produce the following output.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!