title: Python dictionary Keys to new dict
body: <p>I have a dictionary and a set as follows:</p>
  
  <pre><code>fundprices = {
  'A' : 20,
  'B' : 20,
  'C' : 10,
  'D' : 15,
  'E' : 10,
  'F' : 15,
  'G' : 35,
  'H' : 20,
  'I' : 10,
  'J' : 5
  }
  
  dollaramount = {
  100000.0, 
  100000.0, 
  50000.0, 
  300000.0, 
  50000.0, 
  100000.0, 
  100000.0, 
  150000.0, 
  50000.0, 
  0
  }
  </code></pre>
  
  <p>And I am trying to create a third dictionary that is the result of the set divided by the dictionary, with the following code:</p>
  
  <pre><code>orderamount = []
  
  for i in fundprices.key(), dollaramount.key():
      orderamount.append(dollaramount[i] / fundprices[i])
  
  print orderamount
  </code></pre>
  
  <p>Where <code>orderamount</code> has the same keys as fund prices. However, I am getting 'dict' object has no attributes as a result. In this case, dollaramount is a set created from another calculation from 2 dictionaries. If it is easier to add keys when the set dollaramount is created, let me know. How do I fix this?</p>