RE: [Webware-discuss] python challange

2002-09-26 Thread Ben Parker
ki Cc: '[EMAIL PROTECTED]' Subject: Re: [Webware-discuss] python challange Stefan Kuzminski wrote: >What's the most efficent way to display numbers with commas > >1,000,000 > >given a numeric type? > Can't speak for the efficiency (doesn't seem

Re: [Webware-discuss] python challange

2002-09-26 Thread Matthew J. Feifarek
Stefan Kuzminski wrote: >What's the most efficent way to display numbers with commas > >1,000,000 > >given a numeric type? > Can't speak for the efficiency (doesn't seem very efficient with all the type changing) but here's a simple start: import string def comma(num): tmp = list(s

[Webware-discuss] python challange

2002-09-26 Thread Stefan Kuzminski
What's the most efficent way to display numbers with commas 1,000,000 given a numeric type? S --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf __