Python tip calculator I'm off by 0 .01


#1

Hi in the Python trip calculator I'm off by 0 .01. My answer is 54.62 and the program say it should be 54.63. Were did I go wrong? this is what I have.

ssign the variable total to the sum of meal + meal * tip on line 8. Now you have the total cost of your meal!

Assign the variable total on line 8!

meal = 44.50
tax = 0.0675
tip = 0.15

meal = meal + (meal * 0.15)
total = 47.50 + (47.50 * 0.15)

print("%.2f" % total)


Welcome to our forums! Please Introduce Yourself
#2

Check the instructions. Are we supposed to calculate the tax, first, and add it to the meal cost, then calculate the tip and add it to that?,


#4