I'm trying to build the snake game using the python module turtle. This is my code
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("Black")
head.penup()
head.goto(0, 0)
head.direction = "stop"
turtle.mainloop()
Error:
head.Shape("Square")
AttributeError: 'Turtle' object has no attribute 'Shape'