import turtle,random
s = turtle.getscreen()
t1 = turtle.Turtle()
t2 = turtle.Turtle()
t3 = turtle.Turtle()
t2.penup()
t2.goto(1,100)
t3.penup()
t3.goto(1,200)
while True:
t1.forward(random.randint(1,10))
t2.forward(random.randint(1,10))
t3.forward(random.randint(1,10))
if t1.xcor() >= 180:
print("Turtle 1 won the race!")
quit()
elif t2.xcor()>= 180:
print("Turtle 2 won the race!")
quit()
elif t3.xcor() >= 180:
print("Turtle 3 won the race")
quit()
I hope this helps!