[Tutor] Python help

Robert Berman bermanrl at cfl.rr.com
Wed Apr 22 19:21:39 CEST 2009


 Show us your solution and perhaps we can help you make it a tad more 

Robert Berman

IT_ForMe wrote:
> Anyone know how to program this using Python
> Add up the prices for items in a shopping cart. Some items are taxable and
> some items are not. You may assume a 7% tax rate for all taxable items.
> Apply a 10% discount if the customer is a student. (hint, instead of asking
> the user to input items, set them up as an associative array in the code)

More information about the Tutor mailing list