title: AttributeError: 'module' object has no attribute 'draw_grid'
body: <p>I have a ex12.py file containing the simple code of></p>
  
  <pre><code>def draw_grid():   
      print(" | | ")  
      print("-----")  
      print(" | | ")
  </code></pre>
  
  <p>In the Python Shell I write the code></p>
  
  <pre><code>&gt;&gt;&gt;import ex12 
  &gt;&gt;&gt;ex12.draw_grid()
  </code></pre>
  
  <p>And I get the error:  </p>
  
  <pre><code>Traceback (most recent call last):  
    File "&lt;pyshell#42&gt;", line 1, in &lt;module&gt;  
      ex12.draw_grid()  
  AttributeError: 'module' object has no attribute 'draw_grid'  
  </code></pre>
  
  <p>I am quite new to Python and I don't know what's wrong with that syntax. I don't get an error after the import command, so I expected the module's function to be accessible.</p>