home
|
Neopolitan
|
Component Library
Format A Number With Commas In Python
Code
raw_num =
987654321
formatted = f"
{raw_num:,}
"
print
(formatted)
Results
987,654,321