title: Add tuple as value in a dictionary
body: <p>I have a list of tuples with some xml information and want to create a dictionary instead so as to make accesses faster. Need to asign an id as the key I'm storing in the first item for each tuple of the list, and as value all the remaining information but not sure if that is even possible on python.</p>
  
  <p>The code I actually have to generate the list:</p>
  
  <pre><code>for node in root.findall('n:graph/n:node', ns):
          id = node.get('id')
          nodes.append((id, *(data.text for data in node if \
          (data.get('key') == keys[2] or data.get('key') == keys[3]))))
  </code></pre>
  
  <p>Which get me the following output:</p>
  
  <blockquote>
    <p>nodes = [('id1', 'x', 'y'), ('id2', 'x', 'y') ... ]</p>
  </blockquote>
  
  <p>What I want is something like:</p>
  
  <blockquote>
    <p>nodes = {'id1' : ('x', 'y'), 'id2' : ('x', 'y') ... ]</p>
  </blockquote>
  
  <p>So that I can then use <strong>if id in nodes</strong> to check if an element exists or not. Thank you.</p>