Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created December 18, 2023 11:12
Show Gist options
  • Save stephengruppetta/9190429d85bf1ca5430c4fbd978715c2 to your computer and use it in GitHub Desktop.
Save stephengruppetta/9190429d85bf1ca5430c4fbd978715c2 to your computer and use it in GitHub Desktop.
# ...
# If cute_turtles is a list of turtles, such as
# cute_turtles = [turtle.Turtle() for _ in range(n_turtles)]
[cute_turtle.forward(1) for cute_turtle in cute_turtles]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment