Question: Write a function named triangle that uses the turtle graphics library to draw a triangle. The functions should take arguments for the X and Y
Write a function named triangle that uses the turtle graphics library to draw a triangle.
The functions should take arguments for the X and Y coordinates of the triangles vertices, and your preferred color with which the triangle should be filled. You must demonstrate the function of your program.
Also, you have to draw triangles with different colors using the function you defined. Also, Windows must not be closed until users close the Window. Triangles should be arranged so that they do not overlap.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
