Q: AttributeError: partially initialized module 'turtle' has no attribute 'Pen' (most likely due to a circular import) Can anyone tell me why this code dosen't work?
import turtle
t = turtle.Pen
for x in range(100):
    t.forward(x)
    t.left(90)
turtle.done()


A: File name issues aside, this code won't run due to missing parentheses after Pen.  Instead try:
import turtle

p = turtle.Pen()

for x in range(100):
    p.forward(x)
    p.left(90)

turtle.done()

