title: Reading textfile into dictionary
body: <p>My code:</p>
  
  <pre><code>fd = open('C:\Python27\\alu.txt', 'r')
  D = dict(line.split("\n") for line in fd)
  </code></pre>
  
  <p>It shows the following error</p>
  
  <pre><code>traceback (most recent call last):
    File "C:\Users\ram\Desktop\rest_enz3.py", line 8, in &lt;module&gt;
      D = dict(line.split("\n") for line in fd)
  ValueError: dictionary update sequence element #69 has length 1; 2 is required
  </code></pre>