I want to output certain decimal variables with certain formatting, and my understanding is you do this with contexts from the decimal class. How would I go about doing this?
x = decimal.Decimal(2000.0)
And now I want to print this in the format $2,000.00
How would I go about doing that with a context?