title: How to convert a 2D Array of records to a multi lined string of records separated by a delimiter?
body: <p>I have a 2D array of records. </p>
  
  <pre><code>records = [['Adam', 'Smith', '11111985'], ['Theodore', 'Anderson', '20031990'], ['Adam K', 'Smith', '09091999'], ['Monty', 'Biscuit-Barrel', '18101980'], ['Adam', 'Smithers', '00000000'], ['Ruthy', 'Anderson', '06062010']]
  </code></pre>
  
  <p>I want to output these records to a file line by line, each line being a row of information, and each row having records separated with '|' delimiter. So the output is supposed to look like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>Adam|Smith|11111985
  Theodore|Anderson|20031990
  Adam K|Smith|09091999
  Monty|Biscuit-Barrel|18101980
  Adam|Smithers|00000000
  Ruthy|Anderson|06062010
  </code></pre>
  
  <p>However, this is what I'm getting for my output:</p>
  
  <pre class="lang-none prettyprint-override"><code>Adam|Smith|11111985|
  |Theodore|Anderson|20031990|
  |Adam K|Smith|09091999|
  |Monty|Biscuit-Barrel|18101980|
  |Adam|Smithers|00000000|
  |Ruthy|Anderson|06062010|
  </code></pre>
  
  <p>And here is my code:</p>
  
  <pre><code>def makeTextFrom2dArray(records):
    tempArray = []
  
    for row in records:
      for col in row:
        tempArray.append(col)
      tempArray.append('\n')
    return ('|').join(tempArray)
  
  output= makeTextFrom2dArray(records)
  print(output)
  </code></pre>