DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python thousands separators
'{:,}'
.
format
(
value
)
# For Python ≥2.7
f'
{
value
:
,
}
'
# For Python ≥3.6
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#thousands
#separators
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit