Iterating through a specific key set in python
<p>I have a dictionary in python with date tuples as keys and data tuples as the values.</p>

<p>An example might be:</p>

<pre><code>(1900, 1): (2.0, 3.0, 4.0)
</code></pre>

<p>where 1900 is the year 1900 and 1 is the first month, January. </p>

<p>The key tuples follow like so: (1900, 2), (1900, 3) and so on. </p>

<p>How can I iterate over a dictionary like this? Specifically the first month of every year, so the key set would look like (1900, 1)...(1910, 1) with the first item in the tuple incrementing, but the second staying the same. </p>

<p>Thank you for any help you can give me, since I am relatively new to python. </p>
