title: Convert a recursion result to string in order to print it backwards
body: <p>Here is my code so far:</p>
  
  <pre><code>import string  
  def convert(num,base):
      if num==0:
          return 
      else:
          remainder = num%base
          num = num//base
          b=(str(remainder))
          print(b[::-1],end="")
          return convert(num,base)
  </code></pre>
  
  <p>Instead of printing this:</p>
  
  <pre><code>&gt;&gt;&gt; convert(29,3)
  2001
  </code></pre>
  
  <p>I need to print it backward like this (and it needs to be done by strings):</p>
  
  <pre><code>&gt;&gt;&gt; convert(29,3)
  1002
  </code></pre>
  
  <p>Seems like string does not work well with recursion:</p>
  
  <pre><code>&gt;&gt;&gt; convert(29,3)
   ('2', ('0', ('0', ('1', None))))
  </code></pre>