title: Python 2.7 turtle error
body: <p>I am having trouble with the turtle module.</p>
  
  <p>When I use this in a file:</p>
  
  <pre><code>import turtle
  t = turtle.Pen
  </code></pre>
  
  <p>It makes this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/admin/SkyDrive/Documents/turtle command game", line 1, in &lt;module&gt;
      import turtle
    File "C:/Users/admin/SkyDrive/Documents\turtle.py", line 8, in &lt;module&gt;
      p = turtle.pen()
  AttributeError: 'module' object has no attribute 'pen'
  </code></pre>
  
  <p>but when I do the same thing in the python shell, it works fine. I copied and pasted them and made sure that they were the same.</p>
  
  <p>I also tried:</p>
  
  <pre><code>from turtle import *
  t = Pen()
  </code></pre>
  
  <p>but it returned the same error, and when I did that in the shell, everything ran smoothly.</p>
  
  <p>I even tried importing the <code>Pen()</code> function directly in a file:</p>
  
  <pre><code>from turtle import Pen
  t = Pen()
  </code></pre>
  
  <p>but it had the same error, but when I did it in the shell, it worked.</p>
  
  <p>I have python 2.7.7 and windows 8.1</p>
  
  <p>Can anyone tell me what is going on here?</p>
  
  <p>Any help would be appreciated.</p>