title: enumerate() for dictionary in Python
body: <p>I know we use <code>enumerate</code> for iterating a list but I tried it on a dictionary and it didn't give an error.</p>
  <p>CODE:</p>
  <pre><code>enumm = {0: 1, 1: 2, 2: 3, 4: 4, 5: 5, 6: 6, 7: 7}
  
  for i, key in enumerate(enumm):
      print(i, key)
  </code></pre>
  <p>OUTPUT:</p>
  <pre><code>0 0
  
  1 1
  
  2 2
  
  3 4
  
  4 5
  
  5 6
  
  6 7
  </code></pre>
  <p>Can someone please explain the output?</p>