title: What's the difference between from turtle import * and import turtle?
body: <p>I am trying to use a book on python, and I understand that <code>from turtle import *</code> imports everything into the current namespace while <code>import turtle</code> just brings the module in so it can be called as a class. When I try the latter, though, it breaks.</p>
  
  <pre><code>&gt;&gt;&gt; import turtle
  &gt;&gt;&gt; t = turtle.pen()
  &gt;&gt;&gt; t.pen.forward(10)
  Traceback (most recent call last):
    File "&lt;pyshell#2&gt;", line 1, in &lt;module&gt;
     t.pen.forward(10)
  AttributeError: 'dict' object has no attribute 'pen
  </code></pre>
  
  <p>However, using <code>from turtle import*</code>, assigning <code>pen</code> to an object and typing command <code>forward</code> works fine. This is not what the book says to do, but it is the only thing that works. What is happening?</p>