title: How to center printed text with pyfiglet in Python
body: <p>I would want to print on the center text that has been made with py-figlet (<a href="https://github.com/pwaller/pyfiglet" rel="nofollow noreferrer">https://github.com/pwaller/pyfiglet</a>).</p>
  <p>My code looks like this:</p>
  <pre><code>from pyfiglet import Figlet
  
  f = Figlet(font='ascii___')
  
  def DrawText(text):
      return f.renderText(text)
  
  print(DrawText('text')) &lt;- Center it
  </code></pre>
  <p>On output I would want to have text printed on center with pyfiglet printing.</p>