title: how to return "true" or false using recursive function?
body: <p>Here is my code:</p>
  <pre><code>def mirror(s,s2):
  
   
    new=&quot;&quot;
    if s==&quot;&quot;:
        return s
  
  
        
    new = mirror(s[1:],s2) +s[0]
    
    if len(new)==len(s2):
    
        if new==s2:
            
                return True
        else:
            
                return False
       
  
  def main():
  
   print(mirror(&quot;dcba&quot;,&quot;abcd&quot;))
  
   
  main()  
  </code></pre>