title: PYTHON: Read a file into a dictionary with column n as key and column m as value
body: <p>I know how to do it if its just two columns, but what if the file is like:</p>
  
  <pre><code>01 asd 023 green
  01 dff 343 blue
  02 fdf 342 yellow
  02 fff 232 brown
  02 kjf 092 green
  03 kja 878 blue
  </code></pre>
  
  <p>and say, I would like column 2 to be the key to my dictionary and column 4 to my content for that key? I was thinking, a way to go around this problem would be to totally delete the other useless columns so that only the two I need remain, then I can use a script which I also saw on this website to make the dictionary</p>
  
  <p><a href="https://stackoverflow.com/questions/4803999/python-file-to-dictionary">Python - file to dictionary?</a></p>
  
  <p>Of course, this is a way around the problem, any tip is greatly appreciated.</p>