How would I get a string that is equal to:
' 100,000.23'
Given that I have the variable
num = 100000.23
I can right justify with:
num = 100000.23
'{:>10.2f}'.format(num)
and I can thousands separate with:
num = 100000.23
'{:,}'.format(num)
But how can I do both at the same time?