I have the following line of code
print("Income $ {:>8,d} pays Flat tax ${:>9.2f} and Current tax ${:>9.2f}".format(income,tax,curr_tax))
It gives me the output
Income $ 10,000 pays Flat tax $ 0.00 and Current tax $ 0.00
But I am trying to join the $ sign with the numbers without any spaces in between. How do we do this with string.format()
Edit:
This is the output I am trying to achieve
Income $50,000 pays Flat tax $780.00 and Current tax $0.00
Income $10,00 pays Flat tax $0.00 and Current tax $0.00