Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I keep getting only half of the tests right but I don't see anything wrong with my code? Please help! Use the turtle module to

image text in transcribedimage text in transcribed

I keep getting only half of the tests right but I don't see anything wrong with my code? Please help!

Use the turtle module to create a turtle tuck. Use tuck to draw a box with it's center at (x = 0, y = 0). The width of the box should be 100 and the height of the box should be 200. Save & Run 2/21/2021, 7:57:55 PM - 16 of 16 Show in CodeLens 1 import turtle 2 tuck = turtle. Turtle() 3 4 def draw_box(tuck,x,y,width, height): 5 tuck.pencolor("green") tuck.pensize(10) 6 7 8 9 10 11 12 13 tuck.up() tuck.goto(x,y) tuck.down tuck.forward(width) tuck.right(90) tuck.forward(height) tuck.right(90) tuck. forward(width) tuck.right(90) tuck. forward(height) tuck.end_fillo 14 15 16 17 18 19 20 draw_box(tuck, -50, 100, 100, 200) 21 turtle.done() ActiveCode (KDL_ch5_5ver2) Result Actual Value Expected Value Notes Pass True True Contains Turtle module Pass True True Contains tuck Fail False True x makes sense Fail False True y makes sense You passed: 50.0% of the tests

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part I Lnai 8724

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448475, 978-3662448472

More Books

Students also viewed these Databases questions