Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I was looking to change a few things to make it more smooth. Respond to a different student by comparing two solutions. State which solution

I was looking to change a few things to make it more smooth.

Respond to a different student by comparing two solutions. State which solution you think is better and why, or state why neither is significantly better than the other.

import turtle #import turtle module wn = turtle.Screen() #create window truck = turtle.Turtle() #call turtle object truck.pensize(10) #set Pen size to 10 #draw truck truck.forward(50) truck.right(45) truck.forward(30) truck.forward(30) truck.left(45) truck.forward(50) truck.right(90) truck.forward(50) truck.right(90) truck.forward(80) truck.circle(30) truck.forward(120) truck.circle(30) truck.forward(90) truck.right(90) truck.forward(50) truck.right(90) truck.forward(145) truck.left(90) truck.forward(40) import time #import time module for color in ("yellow","blue","red"): #for loop with colors (Colombian Flag) wn.bgcolor(color) time.sleep(2) #Set a 2 second delay before going to the next color wn.exitonclick() #close the window when user clicks

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

How consistent is the approach to coaching across the company?

Answered: 1 week ago

Question

How committed are you to this action on a scale of 110?

Answered: 1 week ago

Question

What non-verbal behaviour do they demonstrate?

Answered: 1 week ago