title: How to remove /n from a list while printing or putting into an array
body: <p>I'm using the following code to split up a large text file into chunks of <code>100</code>.</p>
  
  <pre><code>import itertools
  import pprint
  
  with open('usernames.txt') as f:
      while True:
          lines = list(itertools.islice(f, 100))  # similar to `f[0:100]`
          if not lines:
              break
  
          print lines
  </code></pre>
  
  <p>However when I print, every line has a <code>/n</code> of course, now I was wondering on how to rid of them.</p>
  
  <p>As <code>lines.rstrip('/n')</code> does not work, neither does <code>.remove()</code>.</p>