Why does my answer tell me its wrong. i have followed the instructions can someone help please


gn the variable total on line 8!

meal = 44.50
tax = 0.0675
tip = 0.15

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

print("%.2f" % total)

Replace this line with your code.


Let python carry out the operations instead of hard-coding the result (which you got slightly wrong as well)


I had several issues but I realized that I was simply overthinking the problem!

so what you need to input for total is simply this:

total = meal + meal * tip

You don't need parenthesis either because the order of operations will multiply the meal variable and tip variable first.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.