We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3436d1e commit 2040881Copy full SHA for 2040881
TurtleRace/TurtleRace.py
@@ -33,11 +33,11 @@
33
show.penup()
34
show.goto(-200, -150)
35
show.color("red")
36
- if winner == UserInput:
+ if winner.lower() == UserInput.lower():
37
+ print("Your turtle won!")
38
show.write("Your turtle won!")
39
else:
40
+ print(f"Your turtle lost, the winner is {winner} turtle!")
41
show.write(f"Your turtle lost, the winner is {winner} turtle!")
- time.sleep(1)
- show.clear()
42
runner.forward(random.randint(0, 10))
43
-scr.exitonclick()
+scr.exitonclick()
0 commit comments