This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by denniscrazy
almost 9 years

5/5 [resolved] Please help me.

meal = 44.50
tax = 0.0675
tip = 0.15
total = 44.7175

meal = meal + meal * tax
Total = meal + meal * tip

print("%.2f" % total)

what did i do

Answer 556b7aa7e0a3002476000371

1 vote

Permalink

Hi denniscrazy,

Python is case sensitive, so total is not the same as Total. You’ve asked to print total and as far as Python knows, the last time you assigned a value to total is here: total = 44.7175, so that’s what you see printed.

points
Submitted by Judy
almost 9 years

2 comments

denniscrazy almost 9 years

thank you lol that was vary helpful it worked after i fixed it thank you allot

Judy almost 9 years

You’re welcome.

Answer 556ac67bd3292fc3fa000104

0 votes

Permalink

Seems it’s good. What’s your problem?

points
Submitted by zachzwy
almost 9 years

1 comments

denniscrazy almost 9 years

i really dont know it jest dos not work

Answer 556b71a09113cb98930006a8

0 votes

Permalink

What is the error it gives you?

points
Submitted by JoshKelm
almost 9 years

Answer 55840b08d3292f36ef00053d

0 votes

Permalink

meal = 44.50 tax = 0.0675 tip = 0.15 total = 54.63

meal = meal + meal * tax Total = meal + meal * tip

print(“%.2f” % total)

points
Submitted by Buwaneka De Silva
almost 9 years

2 comments

Judy almost 9 years

Hi Buwaneka, what are you trying to tell us?

Buwaneka De Silva almost 9 years

total = 54.63 create a variable with the answer(cheat)