Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(PLEASE READ CAREFULLY)- Hi, can you change the colour of my turtles to blue, red, black, yellow and green using Turtle from python to my

(PLEASE READ CAREFULLY)- Hi, can you change the colour of my turtles to blue, red, black, yellow and green using Turtle from python to my program bellow These are the colours of the olympic rings. I need five turtles on the program. Also, have a countdown of READY SET GO appear on the screen and then the turtles take off. And add this: When the user choose to exit - Display a new screen and tell them how many times each turtle won a race and how many times they guessed right. Add all these requirements to my program. Thanks.

#!/bin/python3

from turtle import * from random import randint

speed(0) penup() goto(-140, 140)

for step in range(15): write(step, align='center') right(90) for num in range(8): penup() forward(10) pendown() forward(10) penup() backward(160) left(90) forward(20)

ada = Turtle() ada.color('red') ada.shape('turtle')

ada.penup() ada.goto(-160, 100) ada.pendown()

for turn in range(10): ada.right(36)

bob = Turtle() bob.color('blue') bob.shape('turtle')

bob.penup() bob.goto(-160, 70) bob.pendown()

for turn in range(72): bob.left(5)

ivy = Turtle() ivy.shape('turtle') ivy.color('green')

ivy.penup() ivy.goto(-160, 40) ivy.pendown()

for turn in range(60): ivy.right(6)

jim = Turtle() jim.shape('turtle') jim.color('orange')

jim.penup() jim.goto(-160, 10) jim.pendown()

for turn in range(30): jim.left(12)

for turn in range(100): ada.forward(randint(1,5)) bob.forward(randint(1,5)) ivy.forward(randint(1,5)) jim.forward(randint(1,5))

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_2

Step: 3

blur-text-image_3

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

Students also viewed these Databases questions

Question

3. What are the four levels of document design? (LO 6-2)

Answered: 1 week ago