title: python recursion return None type
body: <p>I don't get it, how can i return a <code>List</code> instead of a <code>None</code>?</p>
  
  <pre><code>class foo():
      def recursion(aList):
          if isGoal(aList[-1]):
              return aList
          for item in anotherList:
              newList = list(aList)
              newList.append(item)
              recursion(newList)
  
      someList = [0]
      return recursion(someList)
  </code></pre>
  
  <p>Basically the code is to record all paths (start at 0). Whoever gets 100 first will be returned. <code>isGoal()</code> is to check if last item of the path is 100. And <code>anotherList</code> is a small list of random numbers (from 0 to 100). </p>