Number outcome



Error Code:
Oops, try again. It looks like the printed output is 47.50 instead of 54.63. Double check the instructions!

Assign the variable total on line 8!

meal = 44.50
tax = 0.0675
tip = 0.15

meal = meal + meal * tax

print("%.2f" % total)

I don't know what I'm doing wrong


what are you doing on this line:


? i would use this line to create the total variable, which is the meal + 15% tip, you have all the variables needed to pull it off


It says right here in the prescribed code:

so I did 44.50+44.50 * .15

Notice how it says meal "=" equals?? That's what I was doing


no, there you calculated the tax, not the tip


You've got to calculate the tax and then the tip.