title: How to write 2D list to a txt file?
body: <p>I want to write 2D below to a txt file called readme.txt, but I keep on receiving error.</p>
  <pre><code>report_storage = [
      ['      ', '| G02  ', '| G05  ', '| G07  ', '| G08  ', '| G10  ', '| G25  '],
      ['------', '|------', '|------', '|------', '|------', '|------', '|------'],
      ['P001  ', '|  1   ', '|  0   ', '|      ', '|  --  ', '|  1   ', '|  0   '],
      ['P067  ', '|  1   ', '|  1   ', '|  0   ', '|      ', '|  --  ', '|  1   '],
      ['P218  ', '|  0   ', '|  1   ', '|  1   ', '|      ', '|      ', '|  1   '],
      ['P101  ', '|  0   ', '|  0   ', '|  1   ', '|  1   ', '|  --  ', '|  1   '],
      ['P456  ', '|  1   ', '|  1   ', '|      ', '|  1   ', '|      ', '|  0   '],
      ['------', '|------', '|------', '|------', '|------', '|------', '|------']
  ]
  </code></pre>
  <p>My code:</p>
  <pre><code>with open('readme.txt', 'w') as f:
      f.write(report_storage)
  </code></pre>
  <p>My code Output:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;D:\projects\FinalCodingChallenge\test4.0.py&quot;, line 70, in &lt;module&gt;
      f.write(report_storage)
  TypeError: write() argument must be str, not list
  </code></pre>
  <p>My aim is to get the result below to appear on readme.txt</p>
  <pre><code>      | G02  | G05  | G07  | G08  | G10  | G25  
  ------|------|------|------|------|------|------
  P001  |  1   |  0   |      |  --  |  1   |  0   
  P067  |  1   |  1   |  0   |      |  --  |  1   
  P218  |  0   |  1   |  1   |      |      |  1   
  P101  |  0   |  0   |  1   |  1   |  --  |  1   
  P456  |  1   |  1   |      |  1   |      |  0   
  ------|------|------|------|------|------|------
  </code></pre>