title: python lists values
body: <p>i want to create a list or a dictionary not sure which niether have worked so far
  i need to convert text (user input) into numeric value and add them together
  there are 4 possible answers 
  this is how i want it to work</p>
  
  <p>each box contains fruit and are sold for differant prices</p>
  
  <pre><code>apple=25,oranges=35,pears=10,bananas=50,pineapple=40
  totalprice=0
  count=5
  list = [box1,box2,box3,box4,box5,]
  while count &gt;0:
  fruit=raw_input("what fruit is in ")(0)
  count -=1
  if fruit ==apples:
  return "price 25"
  totalprice=+25
  </code></pre>
  
  <p>i want this to run five times gathering the total price along the way</p>
  
  <p>is there a away that whatever fruit they put in the corresponding value will be added to total price.
  sorry if not explained very well new to programming </p>