You are viewing a single comment's thread. Return to all comments →
def solve(meal_cost, tip_percent, tax_percent): tip = (meal_cost * tip_percent) / 100 tax = (meal_cost * tax_percent) / 100 total_cost = int(round(meal_cost + tip + tax)) print(total_cost) if name == 'main': meal_cost = float(input())
tip_percent = int(input()) tax_percent = int(input()) solve(meal_cost, tip_percent, tax_percent)
could you please help me
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Operators
You are viewing a single comment's thread. Return to all comments →
def solve(meal_cost, tip_percent, tax_percent): tip = (meal_cost * tip_percent) / 100 tax = (meal_cost * tax_percent) / 100 total_cost = int(round(meal_cost + tip + tax)) print(total_cost)
if name == 'main': meal_cost = float(input())
could you please help me