title: How to write multiple strings in one line?
body: <p>I've started to learn Python with LPTHW and I've gotten to exercise 16:</p>
  
  <p><a href="http://learnpythonthehardway.org/book/ex16.html" rel="nofollow noreferrer">http://learnpythonthehardway.org/book/ex16.html</a></p>
  
  <p>And feel like an idiot because I can't figure out one of the seemingly simple "extra credit" assignments that wants the following:</p>
  
  <pre><code>target.write(line1)
  target.write('\n')
  target.write(line2)
  target.write('\n') 
  target.write(line3)
  target.write('\n') 
  </code></pre>
  
  <p>To be condensed to one line of code. I've tried some of the following:</p>
  
  <pre><code>target.write(line1 \n, line2 \n, line3 \n)
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>target.write('line1 \n, line2 \n, line3 \n')
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>target.write(%r \n, %r \n, %r \n) % (line1, line2, line3)
  </code></pre>
  
  <p>I just can't get it to rewrite the line1, line2, and line3 strings all in the same line.  And I've tried various other combinations with and without commas, quotes, etc. I keep getting varying errors, like Invalid Syntax or that I have too many arguments.</p>