SHARE
TWEET

Untitled

a guest May 22nd, 2019 173 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. shopping_list = ["banana", "orange", "apple", "pear", "soda"]
  2.  
  3. QTY_purchased = {
  4.     "banana": 1,
  5.     "orange": 1,
  6.     "apple": 2,
  7.     "pear": 1,
  8.     "soda": 12
  9. }
  10. prices = {
  11.     "banana": 4,
  12.     "orange": 2,
  13.     "apple": 1.5,
  14.     "pear": 3,
  15.     "soda": 1
  16. }
  17. UPC = {
  18.     "banana": 1,
  19.     "orange": 2,
  20.     "apple": 3,
  21.     "pear": 4,
  22.     "soda": 5
  23. }
  24. item_description = {
  25.     "banana": 1,
  26.     "orange": 2,
  27.     "apple": 3,
  28.     "pear": 4,
  29.     "soda": 5
  30. }
  31. tax = {
  32.     "banana": 0,
  33.     "orange": 0,
  34.     "apple": 0,
  35.     "pear": 0,
  36.     "soda": 1
  37. }
  38.  
  39. def compute_bill():
  40.     for x in shopping_list:
  41.         pretax=prices * QTY_purchased
  42.         print(pretax)
  43.     return pretax
  44.  
  45. compute_bill()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top