Searching through Dictionaries in Python
<p>I would like to search through on one of the components in a dictionary <code>"C"</code>.</p>

<p>For that component I have around 6 pairs of (x,y,z). I would like to search through until there are no more and assign the integers to a variable: <code>x_value</code>, then the <code>y</code> and then the <code>z</code>.</p>

<pre><code>Guanine = {"C": [(6.958, -5.037, 2.040), (7.355, -4.850, 3.500), 
                 (6.601, -5.985, 4.170), (6.713, -7.099, 3.130),
                 (5.627, -8.157, 3.190), (4.259, -1.254, 0.410),
                 (4.530, -2.553, 0.900), (4.456, -4.566, 1.600),
                 (5.830, -2.919, 1.170), (6.712, -0.955, 0.570)]}
</code></pre>

<p>For example:</p>

<pre><code>Atom type: X-value: Y-Value: Z-Value:

C          6.958    -5.037    2.040
C2         6.601    -5.985    4.170

etc...
</code></pre>

<p>I want to do this until there is no more value.</p>
