title: Python Key Error:1
body: <p>i get a Key Error with this code</p>
  
  <pre><code>items = {
           'coke': '1.50',
           'mars': '1.00',
           'fanta': '1.40',
           'wispa': '1.50',
           'galaxy': '2.00',
          }
  def list_items():
      for x in range(0,len(items)):
          print("Item:", items[x])
  </code></pre>
  
  <p>Here is the error log</p>
  
  <pre><code>line 12, in list_items
      print("Item:", items[x])
  KeyError: 0
  </code></pre>