Skip to content

Instantly share code, notes, and snippets.

@michaelgobz
Last active February 16, 2019 14:22
Show Gist options
  • Save michaelgobz/17cb228c59ecf1268a0d005a771a09c4 to your computer and use it in GitHub Desktop.
Save michaelgobz/17cb228c59ecf1268a0d005a771a09c4 to your computer and use it in GitHub Desktop.
my code.py
def solve(meal_cost, tip_percent, tax_percent):
if __name__ == '__main__':
meal_cost = float(input())
tip_percent = int(input())
tax_percent = int(input())
total = (meal_cost*(tip_percent/100) + meal_cost*(tax_percent/100) + meal_cost)
solve(meal_cost, tip_percent, tax_percent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment