Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Formatting Help
#1
code

sales_tax = food_charge*.08
print('The sales tax is: $', sales_tax)
Output:
The sales tax is: $ 0.8
looking at how to format to get that to be 0.80
Also if I can to get the 0.80 to be right beside the $ sign
Reply


Messages In This Thread
Formatting Help - by Expel - Jun-02-2019, 09:06 PM
RE: Formatting Help - by perfringo - Jun-02-2019, 09:16 PM
RE: Formatting Help - by Expel - Jun-02-2019, 09:17 PM

Forum Jump:

User Panel Messages

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