Created
January 25, 2025 09:18
-
-
Save chuckis/10a71dcfbcbe7e27370dddebfb0b0d9c to your computer and use it in GitHub Desktop.
some drawings with Turtle Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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