title: Python Formatting Text
body: <p>I am trying to create a list of characters that fits within a certain area.</p>
  <p>I have tried looking it up but could not find any help on this sort of formatting. The thing is, I need to be able to add/remove characters without messing up the formatting to the other names.</p>
  <pre><code>print(&quot;===================================================&quot;)
  print(&quot;-     Character (heroes and villains) Summary     -&quot;)
  print(&quot;===================================================&quot;)
  print(&quot;-                              P  W  L  D  Health -&quot;)
  print(&quot;---------------------------------------------------&quot;)
  print(&quot;- &quot;,character_list[0][0],&quot;              &quot;,character_list[0][3],&quot;&quot;,character_list[0][4],&quot;&quot;,character_list[0][5],&quot;&quot;,character_list[0][6],&quot;    &quot;,character_list[0][7],&quot;-&quot;)
  print(&quot;---------------------------------------------------&quot;)
  print(&quot;- &quot;,character_list[1][0],&quot;                    &quot;,character_list[1][3],&quot;&quot;,character_list[1][4],&quot;&quot;,character_list[1][5],&quot;&quot;,character_list[1][6],&quot;    &quot;,character_list[1][7],&quot;-&quot;)
  print(&quot;---------------------------------------------------&quot;)
  print(&quot;- &quot;,character_list[2][0],&quot;                 &quot;,character_list[2][3],&quot;&quot;,character_list[2][4],&quot;&quot;,character_list[2][5],&quot;&quot;,character_list[2][6],&quot;    &quot;,character_list[2][7],&quot;-&quot;)
  print(&quot;---------------------------------------------------&quot;)
  print(&quot;- &quot;,character_list[3][0],&quot;                  &quot;,character_list[3][3],&quot;&quot;,character_list[3][4],&quot;&quot;,character_list[3][5],&quot;&quot;,character_list[3][6],&quot;   &quot;,character_list[3][7],&quot;-&quot;)
  print(&quot;---------------------------------------------------&quot;)
  print(&quot;- &quot;,character_list[4][0],&quot;                 &quot;,character_list[4][3],&quot;&quot;,character_list[4][4],&quot;&quot;,character_list[4][5],&quot;&quot;,character_list[4][6],&quot;    &quot;,character_list[4][7],&quot;-&quot;)
  print(&quot;---------------------------------------------------&quot;)
  print(&quot;- &quot;,character_list[5][0],&quot;                   &quot;,character_list[5][3],&quot;&quot;,character_list[5][4],&quot;&quot;,character_list[5][5],&quot;&quot;,character_list[5][6],&quot;    &quot;,character_list[5][7],&quot;-&quot;)
  print(&quot;---------------------------------------------------&quot;)
  print(&quot;- &quot;,character_list[6][0],&quot;                 &quot;,character_list[6][3],&quot;&quot;,character_list[6][4],&quot;&quot;,character_list[6][5],&quot;&quot;,character_list[6][6],&quot;    &quot;,character_list[6][7],&quot;-&quot;)
  print(&quot;---------------------------------------------------&quot;)
  print(&quot;- &quot;,character_list[7][0],&quot;                      &quot;,character_list[7][3],&quot;&quot;,character_list[7][4],&quot;&quot;,character_list[7][5],&quot;&quot;,character_list[7][6],&quot;    &quot;,character_list[7][7],&quot;-&quot;)
  print(&quot;---------------------------------------------------&quot;)
  print(&quot;- &quot;,character_list[8][0],&quot;                   &quot;,character_list[8][3],&quot;&quot;,character_list[8][4],&quot;&quot;,character_list[8][5],&quot;&quot;,character_list[8][6],&quot;    &quot;,character_list[8][7],&quot;-&quot;)
  print(&quot;---------------------------------------------------&quot;)
  print(&quot;===================================================&quot;)
  </code></pre>
  <p>Output from the above code is as below</p>
  <pre><code>===================================================
  -     Character (heroes and villains) Summary     -
  ===================================================
  -                              P  W  L  D  Health -
  ---------------------------------------------------
  -  Wonder Woman                5  5  0  0      90 -
  ---------------------------------------------------
  -  Batman                      6  2  0  4      80 -
  ---------------------------------------------------
  -  The Joker                   5  1  0  4      80 -
  ---------------------------------------------------
  -  Superman                    7  4  0  3     100 -
  ---------------------------------------------------
  -  Catwoman                   12  0  6  6      50 -
  ---------------------------------------------------
  -  Aquaman                     8  2  2  4      30 -
  ---------------------------------------------------
  -  Iron Man                   10  6  3  1      50 -
  ---------------------------------------------------
  -  Hulk                        7  2  1  4      80 -
  ---------------------------------------------------
  -  Thanos                     10  2  0  8      90 -
  ---------------------------------------------------
  ===================================================
  </code></pre>
  <p>The code is a little bit messy but it's what I've come up with for the moment that just works with the characters in the default code.</p>
  <p>If anyone could help it would be greatly appreciated!</p>
  <p>EDIT - This is an assessment and requires the characters to be stored in a list as there are other parts that also call this list and its part of the requirements.</p>