The section I'm having trouble with is the one in bold.
#moduals
import turtle
import time
import random
delay=0.1
score=0
high_score=0
turtle.Screen()
turtle.title("snake game")
turtle.bgcolor("black")
turtle.setup(width= 600,height=600)
turtle.tracer(0)
head = turtle.Turtle()
head.speed(0)
head.shape("square")
head.color('White')
head.penup()
head.goto(0,0)
head.direction="Stop"
food=turtle.Turtle()
colors= random.choice(['red', 'blue', 'green'])
shapes= random.choice(['square', 'triangle', 'circle'])
food.speed(0)
food.shape(shapes)
food.color(colors)
food.penup()
food.goto(0,100)
segments=[]
pen=turtle.Turtle()
pen.speed(0)
pen.shape('square')
pen.color("white")
pen.penup
pen.hideturtle()
pen.goto(0,250)
pen.write("Score : 0 High Score : 0", align="center",font=("arial",24,"bold"))
turtle.mainloop()