Question: (PLEASE READ CAREFULLY)-Hi, can you edit my program, the words are disappearing at the top of the race when i run the program. Thanks. Here

(PLEASE READ CAREFULLY)-Hi, can you edit my program, the words are disappearing at the top of the race when i run the program. Thanks.

Here is the program:

from turtle import * from random import randint import string import random import time, sys import collections import turtle import turtle import time wn=turtle.Screen()

black = turtle.Turtle() black.speed(99999999999999999999999) black.pensize(11) black.color("butts") black.circle(50)

red = turtle.Turtle() red.speed(99999999999999999999999) red.pensize(11) red.color("red") red.penup() red.forward(128) red.pendown() red.circle(50)

b = turtle.Turtle() b.speed(999999999999999999) b.pensize(11) b.color("blue") b.penup() b.backward(128) b.pendown() b.circle(50)

g = turtle.Turtle() g.speed(99999999999999999999999999999999999) g.pensize(11) g.color("green") g.penup() g.forward(14) g.right(90) g.pendown() g.circle(50)

y = turtle.Turtle() y.speed(9999999999999999999999999999999999) y.pensize(11) y.color("yellow") y.penup() y.backward(114) y.right(90) y.pendown() y.circle(50)

time.sleep(.5) print "Welcome to the Turtle Olympics 2018!" print "Today, 5 turtles will be facing off in a 100m dash!"

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) for strep in range(100):#loop to create strep change to 100 write(strep, align='left') right(90) for no in range(8): forward(10) penup() pendown() forward(10) penup() backward(160) left(90) forward(20) Blue = Turtle()# create nuber of variable or turtle #a1.pensize(10) Blue = Turtle() Blue.color('blue') Blue.shape('turtle') Blue.penup() Blue.goto(-160, 100) Blue.pendown() for turn in range(10): Blue.right(36)

Red = Turtle() Red.color('red') Red.shape('turtle') Red.penup() Red.goto(-160, 75) Red.pendown() for turn in range(72): Red.left(5)

Black = Turtle() Black.shape('turtle') Black.color('black') Black.penup() Black.goto(-160, 50) Black.pendown() for turn in range(60): Black.right(6)

Yellow = Turtle() Yellow.shape('turtle') Yellow.color('Yellow') Yellow.penup() Yellow.goto(-160, 25) Yellow.pendown() for turn in range(30): Yellow.left(12)

Green = Turtle() Green.shape('turtle') Green.color('green') Green.penup() Green.goto(-160, 5) Green.pendown() for turn in range(15): Green.right(24) def write(text):#fun to write message w = Turtle() w.penup() w.goto(80, 176) w.color("#FF0000") w.write(text, None, None, "16pt bold") time.sleep(1) w.clear() str=['READY','SET','GO'] for x, str in enumerate(str): write(str) time.sleep(0.1) sys.stdout.flush() guess=input('Which turtle do you think will win.... Blue, Red, Black, Yellow or Green ?')

for run in range(100):#fun to run ra1=randint(1,10) rb1=randint(1,10) rc1=randint(1,10) rd1=randint(1,10) re1=randint(1,10) Blue.forward(ra1) Red.forward(rb1) Black.forward(rc1) Yellow.forward(rd1) Green.forward(re1) for turn in range(100): Blue.forward(randint(1,5)) Red.forward(randint(1,5)) Black.forward(randint(1,5)) Yellow.forward(randint(1,5)) Green.forward(randint(1,5)) #playername= {'Blue': ra1, 'Red': rb1, 'Black': rc1, 'Yellow':rd1, 'Green':re1,} correctguess=0 max=max(ra1, rb1, rc1, rd1, re1) if(max==rb1): write('Winner is Blue, got Gold Medals') if (max==rb1): write ('Winner is Red, got Gold Medals') if (max==rc1): write('Winner is Black, got Gold Medals') if (max==rd1): write ('Winner is Yellow, got Gold Medals') if (max==re1): write('Winner is Green, got Gold Medals') ch=input ('Do you want to continue Yes/N0?')

if(ch=='y'): turtle.mainloop() else: if(guess==max): correctguess +=1 def writewinner(text):#fun to write message w = Turtle() w.penup() w.goto(80, 176) w.color("#0000FF") w.write(text, None, None, "16pt bold") time.sleep(1) w.clear() writewinner("the correct guesess are:" ) writewinner(correctguess) if __name__ == "__main__": main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!