Dict not defined in turtle

from turtle import * mypen = pen() screen = Screen() def graphics(): mypen.forward(20) Problem with Python not recognizing the pen function, and outputting “Dict not Defined” Full …