ó
Ð_Zc           @   sq   d  Z  i d d 6d d 6d d 6d d 6d	 d
 6Z d „  Z e d k rm d d d g Z d Ge Gd Ge e ƒ GHn  d S(   sâ   
To run this script, type

  python buyLotsOfFruit.py

Once you have correctly implemented the buyLotsOfFruit function,
the script should produce the output:

Cost of [('apples', 2.0), ('pears', 3.0), ('limes', 4.0)] is 12.25
g       @t   applesg      ø?t   orangesg      ü?t   pearsg      è?t   limesg      ð?t   strawberriesc         C   sH   d } x; |  D]3 \ } } | t  k r. d GHd S| | t  | 7} q W| S(   sU   
        orderList: List of (fruit, numPounds) tuples

    Returns cost of order
    g        t   ErrorN(   t   fruitPricest   None(   t	   orderListt	   totalCostt   fruitt	   numPounds(    (    s   buyLotsOfFruit.pyt   buyLotsOfFruit   s    t   __main__g      @g      @s   Cost oft   isN(   R    g       @(   R   g      @(   R   g      @(   t   __doc__R   R   t   __name__R   (    (    (    s   buyLotsOfFruit.pyt   <module>   s   	