title: Using .strip() to create dictionary from txt file
body: <p>I am new to python. My first task is to create a dictionary from a table in .txt file (input file).
  When I print the input file in python</p>
  
  <pre><code>&gt;temp = open ("input.txt", 'r')
  &gt;temp.readlines()
  ['Traget1\t\score1\r\n', 'Target2\tscore2\r\n', .... 'Target26\tscore26']
  </code></pre>
  
  <p>I tried to create dictionary:
  `</p>
  
  <pre><code>temp = open ("input.txt", 'r')
   d = {}
   for line in temp.readlines():
       target, score = line.split("\t")
       d[target] = float (score)
   print d
  </code></pre>
  
  <p>`    </p>
  
  <p>Result:
  {'Target1 : score 1', 'Target2 : score2', .... 'Target26 : score26'}</p>
  
  <p>The dictionary was created, however, I came across some code that use .strip() to remove the characters \r\n from each line of the input file. I am confused why I do not have to include .strip() and still get to create the dictionary?
  Thanks for your help. </p>