title: Trying to iterate over floats in a dictionary
body: <p>I am trying to complete this function but to no avail because the dictionary contains float values that I am trying to total up.</p>
  <p>Here's the code I have so far:</p>
  <pre><code>def add_prices(basket):
      # Initialize the variable that will be used for the calculation
      total = 0
      # Iterate through the dictionary items
      for groceries, prices in basket.items():
          # Add each price to the total calculation
          for price in prices:
          # Hint: how do you access the values of
          # dictionary items?
              total += price.values()
      # Limit the return value to 2 decimal places
      return round(total, 2) 
  </code></pre>
  <pre class="lang-py prettyprint-override"><code>groceries = {&quot;bananas&quot;: 1.56, &quot;apples&quot;: 2.50, &quot;oranges&quot;: 0.99, &quot;bread&quot;: 4.59, 
      &quot;coffee&quot;: 6.99, &quot;milk&quot;: 3.39, &quot;eggs&quot;: 2.98, &quot;cheese&quot;: 5.44}
  
  print(add_prices(groceries)) # Should print 28.44
  </code></pre>
  <p>I'm completely dumbfounded tbh and need help, as tried typecasting to directly assigning the price to the values.</p>