Using Python v2, I have the following code:
print ("Total of the sale is: ${:,.2f}".format(TotalAmount))
This is taking the string called "TotalAmount" and formatting it so that it looks like this: $100.00, ie: a monetary value, no matter what the number is.
Is there a way to write the formatted output to a string?
Thanks for any help.