title: How do you define __str__ in python when including newline characters?
body: <p>I'm trying to define <strong>str</strong>() for a maze object and have it print out something that looks like this:</p>
  
  <pre><code>#######
  #J..P.#
  #.###.#
  #..@#.#
  #@#.@.#
  #######
  </code></pre>
  
  <p>When I build the string to return, however, it ends up getting printed as:</p>
  
  <pre><code>'#######\n#J..P.#\n#.###.#\n#..@#.#\n#@#.@.#\n#######\n'
  </code></pre>
  
  <p>All I'm doing is going through the list of lists (each row is a list, and the whole maze is a list of these row lists) and concatenating a "\n" at the end of each row. Is there something else I'm supposed to do to the resulting string before returning it so that the string representation of the maze when print() or str() is called on it will return that first desired representation?</p>