Question

Write a function to draw three heights for a acute triangle via turtle. The input of...

Write a function to draw three heights for a acute triangle via turtle. The input of the function are the coordinates of three vertexes.

WRITE THE CODE IN PYTHON AND SHOW OUTPUT.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

from turtle import *


def drawAcute(one, two, three):

# going to the first coordinate

up()

goto(one[0], one[1])

down()

# drawing by going to the given coordinates

goto(two[0], two[1])

goto(three[0], three[1])

goto(one[0], one[1])

drawAcute((0, 0), (100, 0), (50, 50))

Add a comment
Know the answer?
Add Answer to:
Write a function to draw three heights for a acute triangle via turtle. The input of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT