Skip to content

Instantly share code, notes, and snippets.

@chuckis
Created January 25, 2025 09:18
Show Gist options
  • Save chuckis/10a71dcfbcbe7e27370dddebfb0b0d9c to your computer and use it in GitHub Desktop.
Save chuckis/10a71dcfbcbe7e27370dddebfb0b0d9c to your computer and use it in GitHub Desktop.
some drawings with Turtle Python
while True:
n = int(input("Please, enter number of rays for snowflake: "))
if n > 360:
print("Too much!!! Try again!!!")
else: break
import turtle as t
t.reset()
for ray in range(n):
t.forward(100)
t.backward(100)
t.right(360/n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment