programming-examples/python/Math/Print number with commas as thousands separators.py

2 lines
62 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
print("{:,}".format(1000000))
print("{:,}".format(10000))