Hot to format any number in python using commas.
How to print a number using commas as thousands separators.
In this method, the part after the colon is the format specifier. The comma is the separator character you want,
This is equivalent of using format(num, ",d") for older versions of python.
we can use my_string = {number:, } format(my_number) to convert float value into commas as thousands separators.