Created
September 25, 2022 04:40
-
-
Save sweeneyde/e6728e500851d439dd5b5733d1d00e2e to your computer and use it in GitHub Desktop.
try it...
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
from turtle import * | |
def turns(): | |
s = [] | |
while True: | |
yield 90 | |
fold = [-x for x in reversed(s)] | |
yield from fold | |
s += [90] + fold | |
hideturtle() | |
speed(0) | |
getscreen().delay(0) | |
for turn in turns(): | |
forward(3) | |
left(turn) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment