title: Simple function not return string value
body: <p>Hey!</p>
  
  <p>First time posting a question here, I usually find the answer by searching but this time I came up dry.</p>
  
  <p>I'm writing a really simple function in Python but it's refusing to return a value. Basically you're supposed to input HTML-code and it will remove all the HTML tags (by searching for &lt; and &gt;, then stitching together a new string).</p>
  
  <pre><code>def pretty_print(source_code):
      article_nohtml = remove_html(source_code)
  
      print(article_nohtml)
  
  def remove_html(article):
      code_starts_at = article.find('&lt;')
  
      if code_starts_at != -1:
          beginning_of_article = article[:code_starts_at]
          code_ends_at = article.find('&gt;')+1
          end_of_article = article[code_ends_at:]
          stitched_article = beginning_of_article + end_of_article
          remove_html(stitched_article)
      else:
          print(type(article))
          print(article)
          return article
  
  #Test the function
  remove_html('&lt;p&gt;This is a text to &lt;strong&gt; try the script out &lt;/strong&gt;&lt;/p&gt;\n&lt;p&gt;Is this working for you?&lt;/p&gt;')
  </code></pre>
  
  <p>This piece of code does not contain anything extraordinary so it is a mystery to me why it isn't working. I've added the last two print calls just to test the function and they return class 'str' and the full string which is looking fine but when the pretty_print function is supposed to print the article it only outputs None.</p>
  
  <p></p>
  
  <p>Thankful for any help I can get, this should be straight forward but I'm probably missing something.</p>