This problem is common I think but tried searching the answers but nothing worked. So now I'm here asking you guys. So when I write the code below
import turtle
t = turtle.Pen()
for x in range(random_number):
t.forward(x)
t.left(random_number)
and run it by pressing F5 it always shows this error:
Traceback (most recent call last):
File "C:/Users/User/AppData/Local/Programs/Python/Python37-32/ss.py", line 1, in <module>
import turtle
File "C:/Users/User/AppData/Local/Programs/Python/Python37-32\turtle.py", line 2, in <module>
t = turtle.Pen()
AttributeError: module 'turtle' has no attribute 'Pen'
And I'm currently using Win7 and python v3.7.0 so pls help me if you can.