Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wrong values
#3
Code aside, a $45 meal after tip (20%) and tax (7%) will not end up being less than $45 (the number you cited as the book saying, 7.78). It would be $57.15 if you tip on the meal amount and $57.78 if you tip on the meal after tax has been added.

I suggest you work out the math separately, then try to code that up independent of the book, if you want to take another look at this problem.

With regard to the book - you're either not following it, or it's a bad book and not worth continuing with.
Reply


Messages In This Thread
wrong values - by cybervulcan - Jun-16-2018, 09:14 PM
RE: wrong values - by Larz60+ - Jun-16-2018, 09:56 PM
RE: wrong values - by micseydel - Jun-16-2018, 09:56 PM
RE: wrong values - by cybervulcan - Jun-17-2018, 08:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Am I wrong or is Udemy wrong? String Slicing! Mavoz 3 3,000 Nov-05-2022, 11:33 AM
Last Post: Mavoz
  what is wrong. Why python doesn't ad my values ? Bubu93200 8 2,380 Apr-28-2022, 10:53 PM
Last Post: Bubu93200
  python gives wrong string length and wrong character thienson30 2 3,161 Oct-15-2019, 08:54 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020