I'm getting an Import Error in the code
I have defined everything correctly even though i have getting an Import Error
You have to import turtle not dog. turtle is the module name and cannot be changed:
import turtle a_dog = turtle.Turtle() # it can be called a_dog because that is a variable you defined.