logo CodeStepByStep logo


Language/Type: Python DrawingPanel loops graphics parameters
Related Links:

Modify your show_design function from the previous exercise into a new function show_design2 that accepts parameters for the window width and height and displays the rectangles at the appropriate sizes. For example, if your show_design2 function was called with values of 300 and 100, the window would look like the picture below.

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.