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

0 points
Submitted by Janissha
over 8 years

Tip Calculator Code

I need help with knowing what I did wrong. This is my code: meal = 44.50 tax = 0.0675 tip = 0.15 total = meal+meal*tip

Answer 55c5fa3f9113cb54bb000148

0 votes

Permalink

the question requires you to reassign the original variable ‘meal’ - replace ‘total’ with ‘meal’ and the exercise should recognise your answer as valid. It’s a very particular reason for not passing, considering the code is correct but I guess it’s all about the attention to small details!

points
Submitted by underscorekid
over 8 years

1 comments

Janissha over 8 years

Thanks!

Answer 55caaac7d3292f5d71000127

0 votes

Permalink

This is how it worked for me

meal = 44.50 tax = 0.0675 tip = 0.15

total = meal + meal*tax

total_cost = total + total*tip

print total_cost

points
Submitted by qwerty1661
over 8 years