import turtle

# Set up the screen
screen = turtle.Screen()
screen.bgcolor("black")
screen.title("Simple Python Animation")

# Create a turtle
my_turtle = turtle.Turtle()
my_turtle.shape("turtle")
my_turtle.color("white")
my_turtle.speed(1)

# Define the animation function
def draw_square():
    for _ in range(4):
        my_turtle.forward(100)
        my_turtle.right(90)

# Animate the square
for _ in range(10):  # Repeat 10 times
    draw_square()
    my_turtle.right(36)  # Rotate the turtle by 36 degrees

# Close the window when clicked
screen.exitonclick()
