Created
February 5, 2018 16:50
-
-
Save TheOnlyArtz/fb01fc57aa2feea6778f0869ca02a94e to your computer and use it in GitHub Desktop.
none..
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 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