logo CodeStepByStep logo

stairs

Language/Type: Python DrawingPanel loops graphics
Related Links:

Write a function named stairs that uses the DrawingPanel to draw the figure shown below. The first stair's top-left corner is at position (5, 5). The first stair is 10x10 pixels in size. Each stair is 10px wider than the one above it. (We suggest you make a table with the (x, y) coordinates and (width x height) sizes of the first five stairs. Note which values change and which ones stay the same.)

expected output
Function: Write a Python function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.