Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. def refund_calc(totes, bottles, beercrates, beerbottles):
  2.     refund = (4 * totes) + (0.25 * bottles) + (3.90 * beercrates) + (0.10 * beerbottles)
  3.     return refund
  4.  
  5. Customer_1 = [3, 8, 0, 0]
  6. print(refund_calc(*Customer_1))
  7.  
  8. Customer_2 = [3, 8, 1, 0]
  9. print('total refund for customer 2 will be', refund_calc(*Customer_2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement