title: When creating a dictionary from a textfile, how do i add a newline to the dictionary?
body: <p>If the textfile is like this:</p>
  <pre><code>    1 aaaa
      2 bbbb
      3 cccc
      4 dddd
  </code></pre>
  <p>And i use this code in python:</p>
  <pre class="lang-py prettyprint-override"><code>    def read_data(file_name):
          dictionary_reads = {}
          input_file = open(file_name, 'r')
          for line in input_file.readlines():
              key, value = line.strip().split(' ')
              dictionary_reads[key] = value
          input_file.close()
          return print(dictionary_reads) 
  </code></pre>
  <p>I get:</p>
  <pre><code>'1': 'aaaa', '2': 'bbbb', '3': 'cccc', '4': 'dddd'
  </code></pre>
  <p>I would like to get this:</p>
  <pre><code>    '1': 'aaaa',
      '2': 'bbbb',
      '3': 'cccc',
      '4': 'dddd'
  </code></pre>
  <p>I know i removed the <code>\n</code> (newlines) with the .strip function, but if even if i don't, no newlines are made, the <code>\n</code> are just printed instead.</p>
  <p>I hope it is not a crazy stupid question, i am quite new to python :)
  Kind regards</p>