# 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)
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.
I understand its just an exercise. Just trying to see if anyone noticed this.
To what end. may I ask?
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.
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.
Yeah, you are right.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.