Last active
April 21, 2018 01:10
-
-
Save Ad115/3f55cee751e968431e96884b8026ab17 to your computer and use it in GitHub Desktop.
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
# Import the turtle graphics module | |
import turtle | |
# Create a new turtle with the | |
# Turtle function of the turtle module | |
t = turtle.Turtle() | |
# 100 times... | |
for x in range(100): | |
t.forward(x) # Move forward x steps | |
t.left(90) # Turn left 90 degrees |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment