Skip to content

Instantly share code, notes, and snippets.

@TheOnlyArtz
Created February 5, 2018 16:50
Show Gist options
  • Save TheOnlyArtz/fb01fc57aa2feea6778f0869ca02a94e to your computer and use it in GitHub Desktop.
Save TheOnlyArtz/fb01fc57aa2feea6778f0869ca02a94e to your computer and use it in GitHub Desktop.
none..
import turtle
def main():
win = turtle.Screen()
me = turtle.Turtle()
# Just call whatever function you want and run it
# taskOne()
taskTwo()
# taskThree()
# "Rectangle spiral"
def taskOne():
for o in range(12):
if (o == 4):
turtle.left(30)
elif (o == 8):
turtle.left(30)
turtle.fd(100)
turtle.lt(90)
# 4 Stairs 50px each
def taskTwo():
turtle.left(90)
for i in range(4):
turtle.forward(50)
turtle.right(90)
turtle.forward(50)
turtle.left(90)
def taskThree():
print('Turtle#speed controls the speed of the Turtle, the higher it is, the higher speed the Turtle will go.')
if __name__ == "__main__":
main()
turtle.mainloop() # Prevents the graphics window from closing up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment