title: Can't find the reason for the error in my code in python
body: <p>I am beginner in Python and learning through Learn Python the Hard Way.</p>
  
  <p>Unfortunately, I keep getting an error and don't know why.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>def new(num_buckets=256): # Creates list aMap and fills it with 256 empty lists.
      """ Initializes a Map with the given number of buckets."""
      aMap = []
      for i in range(0, num_buckets):
          aMap.append([])
      return aMap
  
  new()
  print aMap
  </code></pre>
  
  <p>strangely enough I keep getting a message saying that aMap is not defined even though I just ran a function creating it as a bunch of empty buckets inside a list. </p>
  
  <p>Thanks for your help.</p>