Why are we tipping on top of the tax?

#1

``````# Assign the variable total on line 8!

meal = 44.50
tax = 0.0675
tip = 0.15

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

print("%.2f" % total)``````

#2

That is just the way the problem was written, possibly to be a little more straight forward. Exercises need not always be exactly like real life scenarios, we just need to follow the instructions to get the desired result.

#3

I understand its just an exercise. Just trying to see if anyone noticed this.

#4

To what end. may I ask?

#5

I've started on python and I'm working on basic stuff, but it feels a little odd if there is less critical thinking involved. Just my opinion.

#6

All in good time. It's difficult to be critically analytical when learning rudiments. It's a big leap from bicycle mechanics to engineering. Even if we can maintain and fix the bike doesn't mean we understand gear ratios, torque and momentum. The lessons here are only introductory.

#7

Yeah, you are right.

#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.