Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def eat_out():
- base_cost = int(input("base_cost:"))
- tip_amount = input("tip type:")
- if tip_amount == "traditional":
- full_cost = (base_cost + (base_cost * .15) + base_cost * .06)
- elif tip_amount == "regular":
- full_cost = (base_cost + (base_cost * .18) + base_cost * .06)
- elif tip_amount == "generous":
- full_cost = (base_cost + (base_cost * .2) + base_cost * .06)
- print(full_cost)
- print(eat_out())
Advertisement
Add Comment
Please, Sign In to add comment