Menu

[Solved]Python 3 Turtle Define Function Draw Simple House Using Turtle Object Consist Square Body Q37060889

Python 3 Turtle

Define a function to draw a simple house using yourturtle object. It should consist of a square body, a triangle roof,a rectangular door (with a round doorknob), and a square windowwith four windowpanes.

Name this function: drawHouse(t, blc, scale=1) Theparameter blc should be a tuple (x,y) specifying the screencoordinates of the house’s bottom left corner.

scale is assumed to be a floating-point value between (0… 5] that should be applied to each of your turtle’s drawndistances, where 1 ==> 100%. Changing this value should scalethe size of your total drawing up/down (e.g. scale = 0.5 shoulddraw a house half the size of that drawn by your original code). Asillustrated in the function signature above, it should be anoptional parameter with a default value of one (1)

Expert Answer


Answer to Python 3 Turtle Define a function to draw a simple house using your turtle object. It should consist of a square body, a… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *