title: Python - too many values to unpack at line 10
body: <p>In the below code, I'm trying to filter the fruits that cost more than 1.00..</p>
  
  <pre><code>fruits = [
     ( 'apple',  0.99 ),
     ( 'orange', 1.25 ),
     ( 'pear',   1.49 ),
     ( 'banana', 0.75 ),
  ]
  
  def preferred(fruit):
      pfruit = [ (x, y) for (x, y) in fruit if y &gt; 1 ]
      return pfruit
  
  favorites = filter(preferred, fruits)
  print favorites
  </code></pre>
  
  <p>I get an error saying : </p>
  
  <blockquote>
    <p>ValueError: too many values to unpack at line 10</p>
  </blockquote>