title: Python range function in terms of itself
body: <p>I'm trying to write the python function, range, recursively without actually using the range function, so if I have a function Range(lo,hi), Range (3,7) would return [3,4,5,6]</p>
  
  <p>What I have so far:</p>
  
  <pre><code>def Range(lo,hi):
      if hi &lt;= lo:
          return []
      else:
          return Range(lo - 1) + ([hi - 1,])
  </code></pre>
  
  <p>I know this is completely wrong but I also had:</p>
  
  <pre><code>def Range2(lo,hi):
      if hi &lt;=lo :
          return []
      else:
          return [Range(lo,hi-1)]
  </code></pre>