You are viewing a single comment's thread. Return to all comments →
meal_cost = float(input())
tip_percent = int(input()) tax_percent = int(input()) tip = (meal_cost * tip_percent) / 100 tax = (meal_cost * tax_percent) / 100 totalCost = int(round(meal_cost + tip + tax)) print(totalCost)
^paste the above code in the function defintion of function 'solve' above,..,, not inside main
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 →
meal_cost = float(input())
^paste the above code in the function defintion of function 'solve' above,..,, not inside main