Python Tutorial for Beginners #1 | Comma Separate any number ( For Beginners )

Опубликовано: 26 Июнь 2026
на канале: Amo Procedures
857
30

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.