For printing number with thousand separator, one can use the python format string :
\'{:,}\'.format(1234567890)
But how can I specify that
This will set the locale environment to your default OS location:
import locale locale.setlocale(locale.LC_ALL, '')
Then you can use:
"{0:n}".format(1234567890)