demo_string_placeholder8.py:
#Use "," to add a comma as a thousand separator: txt = "The universe is {:,} years old." print(txt.format(13800000000))
➜ begtut>python demo_string_placeholder8.py
The universe is 13,800,000,000 years old.