title: How to print a message box in python?
body: <p>I'm trying to print out a message within a created box in python, but instead of it printing straight down, it prints horizontally. </p>
  
  <pre><code>def border_msg(msg):
      row = len(msg)
      columns = len(msg[0])
      h = ''.join(['+'] + ['-' *columns] + ['+'])
      result = [h] + ["|%s|" % row for row in msg] + [h]
      return result
  </code></pre>
  
  <p><strong>Expected result</strong></p>
  
  <pre><code>border_msg('hello')
  
  +-------+
  | hello |
  +-------+
  </code></pre>
  
  <p><strong>but got</strong></p>
  
  <pre><code>['+-+', '|h|', '|e|', '|l|', '|l|', '|o|', '+-+'].
  </code></pre>