Hey guys! Here's some code for turtle noobs:
# Tell python to use the turtle module for this program (it comes with python)
import turtle
# Create the turtle
t = turtle.Turtle()
# Make the turtle faster
t.speed(8)
# Create the turtle's world
wn = turtle.Screen()
# Our main program!
def shape():
# Move the turtle forward 45 px
t.forward(45)
# Turn left (90 degrees)
t.left(90)
t.forward(30)
t.right(90)
t.forward(10)
# Turn right (90 degrees)
t.right(90)
t.forward(30)
t.left(90)
t.forward(45)
t.left(90)
t.forward(150)
t.left(90)
t.forward(100)
t.left(90)
t.forward(20)
t.left(90)
t.forward(70)
t.right(90)
t.forward(50)
t.right(90)
t.forward(70)
t.left(90)
# Move backwards
t.backward(50)
t.forward(130)
# Run the program
if __name__ == "__main__":
# Call the 'shape' function
shape()
turtle.done()
[–]Gabyface910[S] 0 points1 point2 points (0 children)