title: Python: Iterating through a dictionary gives me "int object not iterable"
body: <p>Here's my function:</p>
  
  <pre><code>def printSubnetCountList(countList):
      print type(countList)
      for k, v in countList:
          if value:
              print "Subnet %d: %d" % key, value
  </code></pre>
  
  <p>Here's the output when the function is called with the dictionary passed to it:</p>
  
  <pre><code>&lt;type 'dict'&gt;
  Traceback (most recent call last):
    File "compareScans.py", line 81, in &lt;module&gt;
      printSubnetCountList(subnetCountOld)
    File "compareScans.py", line 70, in printSubnetCountList
      for k, v in countList:
  TypeError: 'int' object is not iterable
  </code></pre>
  
  <p>Any ideas?</p>