[solved] What am I doing wrong?


#1

Assign the variable total on line 8!

meal = 44.50
tax = 0.0675
tip = 0.15

meal = meal + meal * tax
total = meal + meal * tax

print("%.2f" % total)

in print:
50.71
what the value should be showing:
54.63.

What am I doing wrong?


#2

Don't you think, that total should be counted differently than meal?


#3

pls help, im so confused


#4

ok, to be more specific

here you counted, how much meal cost with tax added

but here you suposed to count total which is meal + tip (not tax again)


#5

oh, (face palmed myself for my own stupidity). thank you! I did not notice that.