Source Code:
(back to article)
x = 123.456789 print("{:<10.2f}".format(x)) print("{:,.2f}".format(x))
Result:
Report an issue