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 triangle’s vertices, and the color with which the triangle should be filled. Demonstrate the function in a program.

Step by Step Solution

3.42 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The program that defines a function named drawtriangle using the turtle gr... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Starting Out With Python Questions!