python turtle on mac not working

macos, python, turtle-graphics

Solution

You called your file `turtle.py`, so `import turtle` imports your program, not the module you want.

Rename your program and delete any `turtle.py[co]` files.

Problem

I am trying to use a python import of turtle but i get an error: ``` Traceback (most recent call last): File "turtle.py", line 1, in <module> import turtle File "/turtle.py", line 32, in <module> turtle.pensize(2) AttributeError: 'module' object has no attribute 'pensize' ``` Does the python come with turtle or i have to download it separately? My python is 2.7.2

Original source