title: Python Recursion: Range
body: <p>I need to define a function called rec_range(n) which takes a natural number and returns a TUPLE of numbers up to the number n.</p>
  
  <p>i.e. rec_range(5) returns (0,1,2,3,4) 
       rec_range(1) returns (0,)</p>
  
  <p>This is what I have come up with so far.</p>
  
  <pre><code>def rec_range(n):
      """takes a natural number n and returns a tuple of numbers starting with 0     and ending before n
  
      Natural Number -&gt; Tuple of Numbers"""
      if n == 0:
          return 0
      else:
          return (rec_range(n-1), )
  </code></pre>
  
  <p>This works for rec_range(1). </p>
  
  <p>***Restrictions are: must be defined recursively, cannot use lists, loops or use the existing range() function</p>