python code turtle in python

main.py
import turtle

# Create a turtle screen
wn = turtle.Screen()

# Create a turtle
alex = turtle.Turtle()

# Move turtle
alex.forward(100)
alex.right(90)
alex.forward(100)
alex.right(90)
alex.forward(100)
alex.right(90)
alex.forward(100)

# Close the turtle graphics window
turtle.done()
285 chars
20 lines

related categories

gistlibby LogSnag