Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
367 B
2
Indexable
Never
# Import the Turtle class from the turtle module
from turtle import Turtle

# Create a new turtle object
miniturtle = Turtle()

# Set the turtle's attributes
miniturtle.shape("turtle")
miniturtle.color("green") 
miniturtle.shapesize(2)

# Hide the turtle icon
miniturtle.hideturtle()

# Draw a square
for i in range(4):
  miniturtle.forward(70)
  miniturtle.left(90)