I'm using the following code to build the snake game using turtle:
import turtle
#set up the screen
wn = turtle.Screen()
wn.title("snake game")
wn.bgcolor("Blue")
wn.setup(width=600, height=600)
wn.tracer(0)
#Snake Head
head = turtle.Turtle()
head.speed(0)
head.shape("square")
head.color()
head.penup()
head.goto(0, 0)
head.direction = "stop"
# Main game loop
while True:
wn.update()
turtle.mainloop()
As of now, I've only created a window and added a snakehead. The snakehead color is black. How do I change it to green?