Ask coding questions

← Back to all posts
Python Turtle not working on IDLE partially initialized module 'turtle'
CoderBean (11)

I am trying to use turtle in python IDLE but it doesn't work. The error I'm getting is
AttributeError: partially initialized module 'turtle' has no attribute 'Pen' (most likely due to a circular import)

Can someone please help me fix this error, I don't know what I'm doing wrong, I am doing exactly what my teacher is pls help

Answered by Coder100 (17126) [earned 5 cycles]
View Answer
Coder100 (17126)

is your file called It cannot be called

CoderBean (11)

@Coder100 thanks, why can it not be called

Coder100 (17126)

when you do import turtle python first checks for LOCAL files called Because it found it, it used it instead of turtle! @ChickenTendys