Re: 3 number and dot..
- From: Roberto Bonvallet <rbonvall@xxxxxxxxx>
- Date: Wed, 31 Oct 2007 20:50:48 -0000
On 31 oct, 16:58, Abandoned <best...@xxxxxxxxx> wrote:
Hi..
I want to do this:
for examle:
12332321 ==> 12.332.321
How can i do?
'12.332.321'x = 12332321
'.'.join(''.join(i for n, i in g) for k, g in groupby(enumerate(reversed(str(x))), lambda (n, i): n//3))[::-1]
--
Roberto Bonvallet
.
- Follow-Ups:
- Re: 3 number and dot..
- From: Abandoned
- Re: 3 number and dot..
- From: Abandoned
- Re: 3 number and dot..
- References:
- 3 number and dot..
- From: Abandoned
- 3 number and dot..
- Prev by Date: Re: 3 number and dot..
- Next by Date: Re: shouldn't 'string'.find('ugh') return 0, not -1 ?
- Previous by thread: Re: 3 number and dot..
- Next by thread: Re: 3 number and dot..
- Index(es):