title: How to add list object to Dictionary in Python
body: <p>I am trying to add list object to Dictionary.
  Code:</p>
  
  <pre><code> for line in file:
       splitObj=line.split("=") #split a line xxx= yyy using = delimiter
       listObj=list(splitObj)
       chip_mem.update(listObj[0], listObj[1])
  </code></pre>
  
  <p>This didn't help. Can anyone please let me know how to add the contents of the list to the dict as a <code>key, value</code> pair?</p>