title: Adding a new line character to a variable in python
body: <p>I have the below function to get the below output</p>
  
  <pre><code>22
  4444
  666666
  </code></pre>
  
  <p>Instead i'm getting  </p>
  
  <pre><code>'22\n4444\n666666\n88888888\n'
  </code></pre>
  
  <p>Any ideas where im going wrong?</p>
  
  <pre><code>def EvenLadder(n):
      ...:     solution = ''
      ...:     if n &lt;= 1:
      ...:         return solution
      ...:     elif n%2 ==0:
      ...:         for i in range(2,n+1,2):
      ...:             solution += (str(i)*i)+"\n"
      ...:     else:
      ...:         n = n - 1
      ...:         for i in range(2,n+1,2):    
      ...:             solution += (str(i)*i)+"\n"
      ...:     return solution
  </code></pre>