Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created December 18, 2023 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephengruppetta/15bf9e58e97dbc269be8235be43b3c68 to your computer and use it in GitHub Desktop.
Save stephengruppetta/15bf9e58e97dbc269be8235be43b3c68 to your computer and use it in GitHub Desktop.
# Traditional route…
# ...
# If cute_turtles is a list of turtles, such as
# cute_turtles = [turtle.Turtle() for _ in range(n_turtles)]
while True:
for cute_turtle in cute_turtles:
cute_turtle.forward(1)
window.update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment