Level 10: turtle 0 of 9 activities solved
  1. 1. Alphabet Not yet solved
  2. 2. Nine Dot Not yet solved
  3. 3. Artist Not yet solved
  4. 4. Logo Not yet solved
  5. 5. Vacuum cleaner Not yet solved
  6. 6. Constellation Not yet solved
  7. 7. Castle Not yet solved
  8. 8. Racing turtles Not yet solved
  9. 9. Spirograph™ Not yet solved
Level 10: turtle

8. Racing turtles

Sign in to hand in your solution and get feedback.

# Racing turtles program # ------------------------- # Import libraries # ------------------------- import turtle turtle.setup(750, 550) # ------------------------- # Subprograms # ------------------------- # ------------------------- # Main program # ------------------------- racing_turtles = 6 # Number of racing turtles finish_line = 240 # How far the turtles have to race to the finish speed = 10 # The maximum move a turtle makes in a single update silks = ["red", "blue", "green", "purple", "orange", "salmon"] # Colours of the turtles t = [] # List holding each turtle position = [] # List holding the y position of each turtle