title: How to remove '\n' from the values of my dictionary
body: <p>I have a text file containing</p>
  
  <pre><code>EcoRI;G^AATTC
  BamHI;G^GATCC
  PstI;CTGCA^G
  AluI;AG^CT
  </code></pre>
  
  <p>after putting them into a dictionary and printing the dictionary I get <code>{'EcoRI': 'G^AATTC\n', 'BamHI': 'G^GATCC\n', 'PstI': 'CTGCA^G\n', 'AluI': 'AG^CT\n'}</code> as an output. what are those '\n' at the end of each value ? How can I remove them?</p>
  
  <p>I used this code to put them into dictionary</p>
  
  <pre><code> my_file_2 = open('enzymes.txt', 'r')
      dic_enz = {}
      for line in my_file_2:
          key, value = line.split(';')
          dic_enz[key] = value
      print(dic_enz)
      my_file_2.close()
  </code></pre>