title: Unwanted '\n' character within dictionary items (or within a list of strings)
body: <p>Any suggestions to get rid of an unwanted \n at the end of each last value of each dictionary key items?  </p>
  
  <p>Exemple: </p>
  
  <pre><code>d= {'1' : ['12', '15:23,24:26\n'], '2' : ['13', '15:6\n'],...}
  </code></pre>
  
  <p>Wanted result:  </p>
  
  <pre><code>d= {'1' : ['12', '15:23,24:26'], '2' : ['13', '15:6'],...}
  </code></pre>
  
  <p>Or,any suggestions to get rid of them within a list of strings?    </p>
  
  <p>Exemple: </p>
  
  <pre><code>L= ['1','12','15:23,24:26\n', '2', '13', '15:16\n',...]
  </code></pre>
  
  <p>Wanted result:</p>
  
  <pre><code>L= ['1','12','15:23,24:26', '2', '13', '15:16',...]
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>The import code:</p>
  
  <pre><code>with open('file.txt', 'r+') as file:
      rows = (line.split('\t') for line in file)
      d_file = {row[0]:row[1:] for row in rows}
  </code></pre>