Guest User

Untitled

a guest
Mar 1st, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. def eat_out():
  2. base_cost = int(input("base_cost:"))
  3. tip_amount = input("tip type:")
  4. if tip_amount == "traditional":
  5. full_cost = (base_cost + (base_cost * .15) + base_cost * .06)
  6. elif tip_amount == "regular":
  7. full_cost = (base_cost + (base_cost * .18) + base_cost * .06)
  8. elif tip_amount == "generous":
  9. full_cost = (base_cost + (base_cost * .2) + base_cost * .06)
  10. print(full_cost)
  11.  
  12.  
  13. print(eat_out())
Advertisement
Add Comment
Please, Sign In to add comment