Question

QUESTION 5 Write a non-fruitful function draw Triangle(someturtle, somesize) which makes a turtle draw a equalateral triangle
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Here is the answer..

CODE:

import turtle

def drawTriangle(someturtle,somesize):
#draw base of the triangle
someturtle.forward(somesize)

someturtle.left(120)
someturtle.forward(somesize)

someturtle.left(120)
someturtle.forward(somesize)

turtle.done()

t = turtle.Turtle()
size = 200
drawTriangle(t,size)

OUTPUT:

La Python 3.6.0 Shell* he Le triangle.py - C:/Users/sai/Desktop/triangle.py (3.6.0) File Edit Shell Debug Options Window Hel

if you have any doubts please COMMENT...

If you understand the answer please give THUMBS UP...

Add a comment
Know the answer?
Add Answer to:
QUESTION 5 Write a non-fruitful function draw Triangle(someturtle, somesize) which makes a turtle draw a equalateral...
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
  • QUESTION 17 The drug is labeled 50 mEq in 15 mL. Prepare a dose of 90...

    QUESTION 17 The drug is labeled 50 mEq in 15 mL. Prepare a dose of 90 mEq. TTT Arial : 3 (12pt) T. . . . Path:p QUESTION 18 The drug is labeled 80 mg in 4 mL. The order is for 120 mg. TTT Arial 3 (121) • T. -E . Click Save and Suburnt to save and submit. Click Save All Answers to save all ans . 90 * w QUESTION 19 The label reads 20 mg in...

  • JESTION 3 dosage of 65 units is ordered. The strength available is 100 units in 5...

    JESTION 3 dosage of 65 units is ordered. The strength available is 100 units in 5 mL. TTT Arial 3 (12pt) . T.: E. 3.22 Path:p QUESTION 4 An order is given for 65 meg. The available container is labeled 10 mg in 30 mL. TTT Arial 3 (12pt) •T-EE.. 25 Click Save and Submit to save and submit. Click Save All Answers to save all answers. | $ , % 1 & X

  • QUESTION 5 An oral solution has a strength of 200 mg/mL. Prepare a 0.4 g dose....

    QUESTION 5 An oral solution has a strength of 200 mg/mL. Prepare a 0.4 g dose. TTT 43 (12pt) * T. Arial M Path:p QUESTION 6 Prepare a 0.2 mg dose from a solution labeled 400 mcg/mL. TTT Arial 3 (12pt) : T e so Click Save and Subunit to save and submit. Click Save All Answers to save all answers MacBook Air

  • sth:p Words:59 QUESTION 18 Addition of hydrogen chloride to 3,3-dimethyl-1-butene gives a mixture of two isomeric...

    sth:p Words:59 QUESTION 18 Addition of hydrogen chloride to 3,3-dimethyl-1-butene gives a mixture of two isomeric chlorides. Explain why this is the case, using phrases such as energy of transition state s, hyperconjugation, carbocation stability and shift effects TTT Arial 3 (12pt) T-E-JE- 25 Words:0 Path:p Save All Answers Click Save and Submit to save and submit. Click Save All Answers to save all answers.

  • QUESTION 11 Prepare a dose of 12 mg from an available supply of 10 mg in...

    QUESTION 11 Prepare a dose of 12 mg from an available supply of 10 mg in 5 mL. TT T Arial 43 (12pt) - TEE 5.0 25 Path:p QUESTION 12 Prepare a dose of 475 mg from an available supply of 0.3 g in 2 mL. TTT Arial .3 (12pt) TEE 25 Click Save and Submit to save and submit. Click Save All Answers to save all answers * oðn

  • QUESTION 15 The dosage strength available is 2 g in 50 ml. Draw up a dose...

    QUESTION 15 The dosage strength available is 2 g in 50 ml. Draw up a dose of 4.5 g. TTT Arial : 3 (12pt) T. E Pathp QUESTION 16 The drug is labeled 10,000 units in 1 mL. The order is for 6000 units. TTT Arial 3 (12pt) T E . Click Save and Submit to save and submit. Click Save All Answers to save all arms. # w

  • QUESTION 14 Complete and balance the following half reactioh in basic solution. Identify the oxidizing and...

    QUESTION 14 Complete and balance the following half reactioh in basic solution. Identify the oxidizing and reducing agents (3 marks). S8 - HSO3 TTT Arial 3 (12pt) T 5 - 9. 3. 2 Path:p Words:0 Click Save and Submit to save and submit. Click Save All Answers to save all answers.

  • Classify the following compound as aromatic, antiaromatic, or nonaromatic. TTT Artal 23 (121) THE 50135 Path:p...

    Classify the following compound as aromatic, antiaromatic, or nonaromatic. TTT Artal 23 (121) THE 50135 Path:p QUESTION 61 Even assuming the molecule below is planar, it would still be classified as non-aromatic. Why? | HC=C=CH TTT Arial 3 (12pt) T .E.S. Click Save and Submit to save and submit. Click Save All Answers to save all answers

  • QUESTION 9 Prepare a 15 mg dose from 30 mg tablets. TT Arial 3 (12pt), TS...

    QUESTION 9 Prepare a 15 mg dose from 30 mg tablets. TT Arial 3 (12pt), TS - E e 's Path:p QUESTION 10 Prepare a dose of 7.5 mg from the available strength of 25 mg/5 ml TTT Arial3 (12pt) Click Save and Submit to save and submit. Click Save AH Answers to save all anstners. MacBook Air

  • QUESTION 18 The drug is labeled 80 mg in 4 mL. The order is for 120...

    QUESTION 18 The drug is labeled 80 mg in 4 mL. The order is for 120 mg. TTT Arial 3(12pt) T E O 25 QUESTION 19 The label reads 20 mg in 50 ml. An 18 mg dose has been ordered. TTT Arial 3(121) TEE.. Click Save and Submit to save and submit. Click Save All Answers to see all ans

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