Skip to content

Instantly share code, notes, and snippets.

@sweetlearn
Created February 16, 2017 05:41
Show Gist options
  • Select an option

  • Save sweetlearn/c579778effb5db6bee293be3cdad5514 to your computer and use it in GitHub Desktop.

Select an option

Save sweetlearn/c579778effb5db6bee293be3cdad5514 to your computer and use it in GitHub Desktop.

Revisions

  1. sweetlearn created this gist Feb 16, 2017.
    17 changes: 17 additions & 0 deletions first.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #import turtle
    import turtle
    wn = turtle.Screen()
    wn.bgcolor("red")
    tess = turtle.Turtle()
    tess.shape("turtle")
    tess.color("blue")

    tess.penup() # This is new
    size = 30
    for i in range(90):
    tess.stamp() # Leave an impression on the canvas
    size = size + 2 # Increase the size on every iteration
    tess.forward(size) # Move tess along
    tess.right(50) # ... and turn her

    wn.mainloop()