Create a turtle project with the following steps

1 make the window size : width 750 and height = 650
2 create a turtle as a wall , pensize = 10 , wall’s color is black
3 create a player with a square shape, red color , player position on the left wall
4 create a food with a circle shape, blue color, random food position on the right wall
5 Control the player with the keyboard , so that the player can move up or down
6 Move the food from the right wall to the left
7 Create score and life , then set score to 0 and life to 5 . Then display the score text in the upper right corner and life text in the upper left corner .
8 If the player can catch the food , the score will increase by 1 and the food will move position and return to the starting position.
9 If the player cannot catch the food , or the food touches the left wall , the life will be reduced by 1 and the food will move position and return to the starting position again.
10 If score = 10 , then display the winner text in the center of the screen and stop the game .
11 If life = 0 , then display the Game Over text in the center of the screen and stop the game .

import turtle

import random

# Step 1
wn = turtle.Screen()
wn.title("Turtle Game")
wn.setup(width=750, height=650)

# Step 2
wall = turtle.Turtle()
wall.penup()
wall.pensize(10)
wall.color("black")
wall.goto(-350, 325)
wall.pendown()
wall.goto(-350, -325)

# Step 3
player = turtle.Turtle()
player.shape("square")
player.color("red")
player.penup()
player.goto(-340, 0)

# Step 4
food = turtle.Turtle()
food.shape("circle")
food.color("blue")
food.penup()
food.goto(340, random.randint(-300, 300))

# Step 7
score = 0
life = 5

score_display = turtle.Turtle()
score_display.penup()
score_display.hideturtle()
score_display.goto(300, 300)
score_display.write("Score: {}".format(score), align="center", font=("Arial", 12, "normal"))

life_display = turtle.Turtle()
life_display.penup()
life_display.hideturtle()
life_display.goto(-300, 300)
life_display.write("Life: {}".format(life), align="center", font=("Arial", 12, "normal"))

# Step 5
def move_up():
y = player.ycor()
if y < 275:
y += 25
player.sety(y)

def move_down():
y = player.ycor()
if y > -275:
y -= 25
player.sety(y)

wn.listen()
wn.onkey(move_up, "w")
wn.onkey(move_down, "s")

# Step 6
def move_food():
food.goto(340, random.randint(-300, 300))

# Step 8
def check_collision():
if player.distance(food) < 20:
global score
score += 1
score_display.clear()
score_display.write("Score: {}".format(score), align="center", font=("Arial", 12, "normal"))
move_food()

# Step 9
def check_wall():
if food.xcor() < -340:
global life
life -= 1
life_display.clear()
life_display.write("Life: {}".format(life), align="center", font=("Arial", 12, "normal"))
move_food()

# Step 10
def check_win():
if score == 10:
turtle.write("Winner!", align="center", font=("Arial", 25, "normal"))
wn.bye()

# Step 11
def check_game_over():
if life == 0:
turtle.write("Game Over", align="center", font=("Arial", 25, "normal"))
wn.bye()

# Main game loop
while True:
wn.update()
check_collision()
check_wall()
check_win()
check_game_over()