title: Assign single value to a single key from dictionary key with multiple values
body: <p>I have seen many forums on assigning multiple values to a key in python, but none going the other way. What I want is to assign a single key to a single value, and then flip it.  </p>
  
  <p>What I have:</p>
  
  <pre><code>myDict = {1: ['id1', 'id2', 'id3'], 2: ['id4', 'id5'], 3: ['id6']}
  </code></pre>
  
  <p>What I am looking to do:</p>
  
  <pre><code>myDict = {'id1': 1, 'id2': 1, 'id3': 1, 'id4': 2, 'id5': 2, 'id6': 3}
  </code></pre>
  
  <p>I have been searching the forums and cant figure out how to assign a single value to a single key, but I'm guessing the 'flip' part would look something like this:</p>
  
  <pre><code>myDict = {y:x for x,y in MyDict.iteritems()}
  </code></pre>
  
  <p>Any help would be very appreciated.</p>
  
  <p>EDIT:
  All id's will be unique (not chance of duplicates/multiples) </p>