title: Python - Store a value in an array inside one for loop
body: <p>I would like to store each value of price in an array, getting it from a dict. I am a fresh at python, I spent hours trying to figure this out...</p>
  
  <pre><code>for item in world_dict:
       if item[1] == 'House':
         price = float(item[2])
         print p
  
  The output is like:
  200.5
  100.7
  300.9
  ...
  n+100
  </code></pre>
  
  <p>However, I want to store it on this format : [200.5, 100.7, 300.9, ..., n+100]</p>