title: Python: array and print() format
body: <p>I am trying to implement a function that changes array_1 to array_2, so that array_2 produces the same output as array_1. For example:</p>
  
  <pre><code>for item in array_1: 
      print(item, end ='')
  </code></pre>
  
  <p>I want the code below to produce the same output as the code above:</p>
  
  <pre><code>for item in array_2:
      print(item) 
  </code></pre>
  
  <p><code>array_1 = ["Hello", "World", '\n', '\n', "This", "is", '\n', "a", "textarray"]</code></p>
  
  <p>Running this through the first code gives me:</p>
  
  <pre><code>HelloWorld
  
  Thisis
  atextarray
  </code></pre>
  
  <p>How should I implement the function that changes array_1 to array_2 so that it produces the same output above? </p>