D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Python printing

 

On 04/12/2007, Neil Winchurst <neil@xxxxxxxxxxxxxxxxx> wrote:
I expect it is quite simple, but I cannot find anything to help me.

Are there any Python experts out there? There must be a way to print
long numbers as for example 1,234,567 instead if 1234567. I just can't
find out how to do this. Or is this beyond the capabilities of Python?
That would surprise me.

I found this:
http://mail.python.org/pipermail/python-list/2001-February/070494.html

Looks rather verbose but seems to do what's needed.

--
Benjamin F. Goodger
~ design and ideas lab ~

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/S/M/B d- s+:- a--- c++$ UL++>+++ P--- L++>+++ E- W+++ N+++ k? w--- O? M- V? PS++(+++) PE-() Y? t(+) 5? X-- R- !tv(+) b++>+++ DI+(++) D+ G e>++++ h! r* y-
------END GEEK CODE BLOCK------
-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html