Question: Using Python! Step 5: Write a function to draw a house First switch roles between pilot and navigator if you did not already do that.
Step 5: Write a function to draw a house First switch roles between pilot and navigator if you did not already do that. Add a function named drawHouse0 to the lab02 py file according to the following specifications: 1. Add a couple of blank lines after the end of 2. The new function header must name two parameters in this new function: 3. Precede the header with an appropriate comment like you did for drawRectangle your drawRectangle function definition. parameter to draw a house make the height of the house proportional to its width. Use the drawRectangle function to make part of the house abstraction is good It should work correctly if used as follows xx dravilouse(pat, 100) a really big house >> dravilouse(pat, 10) a tiny house (juat 10 pixeln vide) Note: your house does not have to look exactly like this-le, the proportions of the width/height and the steepness of the roof can be different. As long as it ooks like a house", that's good enough for this lab. Here is an example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
