A short number formatting question

Hi all,

How do I formate a number (eg integer) so that, for n = 12345678,
a print n looks like 12 345 678 or 12'345'678 instead of 12345678 ?
Is it possible with a print ("%fomat_number") % (n) ?
Thanks in advance.
I checked my C books, but...

Jean-Michel Fauth, Switzerland