This forum is now read-only. Please use our new forums! Go to forums
'It looks like the printed output is 50.71 instead of 54.63. Double check the instructions!'
meal = 44.50 tax = 0.0675 tip = 0.15
meal = meal + meal * tax total= meal + meal * tax
print(“%.2f” % total)
So this is the entire code when I click save&submit it say that I get 50.71 instead of 54.63 what have I done wrong. Could you correct my code explain what I have done wrong and also tell me why the corrected code is correct.
Answer 530d5d6a7c82ca78ac002301
Found the solution, it’s : total = meal + meal * TIP not tax, hope this helps.
Answer 530d76467c82caf95a00272a
You don’t have to enter the numbers but instead write the code total = meal + meal * tip and you will get the right answer, 54.63
6 comments
thanks so much I didn’t read the instructions correctly but you really helped me out
I too did not read the instructions. A couple of times when I’ve been caught out it’s because of this so thanks for making this clear.
quite an expensive meal.
Boy do I feel dumb : ** (
Thank you this helped me :)
help i have got 51.17
Answer 53a75c768c1ccc6a34005bc6
Answer 548af68a86f55260e0001836
I had the same exact problem. I did Tax instead of Tip also!
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
thanks so much I didn’t read the instructions correctly but you really helped m out.
my man