Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with homework
#5
print("Sales Tax Calculator")
print("")
print("ENTER ITEMS (ENTER 0 TO END)")

cost_of_item = float(input("Cost of item: "))

while(cost_of_item > 0):
    print()
    print("Cost of item: ", cost_of_item)
issue with this code is that the results are infinite. I want to have separate instances as shown in the image.
Reply


Messages In This Thread
help with homework - by the_last - Oct-28-2018, 02:53 PM
RE: help with homework - by j.crater - Oct-28-2018, 03:04 PM
RE: help with homework - by the_last - Oct-28-2018, 05:12 PM
RE: help with homework - by j.crater - Oct-28-2018, 05:55 PM
RE: help with homework - by the_last - Oct-28-2018, 07:25 PM
RE: help with homework - by j.crater - Oct-28-2018, 07:28 PM
RE: help with homework - by the_last - Oct-28-2018, 08:02 PM
RE: help with homework - by j.crater - Oct-28-2018, 08:35 PM
RE: help with homework - by the_last - Oct-29-2018, 12:02 AM
RE: help with homework - by j.crater - Oct-29-2018, 04:38 PM
RE: help with homework - by nilamo - Oct-29-2018, 06:20 PM

Forum Jump:

User Panel Messages

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