Skip to content

Instantly share code, notes, and snippets.

@ckxng
Created March 7, 2022 19:31
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 ckxng/4405ced9c723852d808af6178e9885cc to your computer and use it in GitHub Desktop.
Save ckxng/4405ced9c723852d808af6178e9885cc to your computer and use it in GitHub Desktop.
import turtle
print("Hello World.")
t = turtle.Turtle()
t.color('white')
t.left(90)
t.forward(100)
t.left(270)
t.color('blue')
i = 10
while i < 200:
t.forward(i)
t.left(90)
i += 10
t2 = turtle.Turtle()
t2.color('white')
t2.left(270)
t2.forward(100)
t2.left(90)
t2.color('red')
i = 10
while i < 200:
t2.forward(i)
t2.left(90)
i *= 1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment