🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #561

Re: Mezclar string

#561
From: Rodrigo Barrientos L.
Date: Tue, 18 Mar 2008 13:35
17 lines
1679 bytes
Cristian Gutierrez <crgutier@dcc.uchile.cl> wrote:
> Muy largo!

> >>> s1='1235'
> >>> s2='67829'
> >>> print ''.join([''.join(x) for x in zip(s1,s2)]) + (s2[len(s1):] + s1[len(s2):])
> 162738529

    Foc. zip(). Buen dato :)

-- 
[Signature changing tool.. to proceed, press 'Shift-C-^T', then enter
'Abracadabra', then..]

The most costly of all follies is to believe passionately in the palpably
not true.  It is the chief occupation of mankind.
		-- H.L. Mencken
Technical Details
Message-ID: <frogf0$mal$1@helcaraxe.dcc.uchile.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!not-for-mail
References: <3394b760-72db-46a1-a587-80153b21be4c@i29g2000prf.googlegroups.com> <Xns9A58AEBD24FD9jmsnews@201.238.250.229> <80a9289e-ea0a-4618-9ccc-170a4a54032e@p73g2000hsd.googlegroups.com> <2bb9b53b-5593-4dae-8090-fb53244b760a@e25g2000prg.googlegroups.com> <fqovjn$tea$1@helcaraxe.dcc.uchile.cl> <873aqrdoea.fsf@dogbert.simple.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,43187c159ac77009
X-Google-Attributes: gid1593cb,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!not-for-mail
From: "Rodrigo Barrientos L." <robarrie@dcc.uchile.cl>
Newsgroups: chile.comp.programacion
Subject: Re: Mezclar string
Date: Tue, 18 Mar 2008 13:35:28 +0000 (UTC)
Organization: DCC - Universidad de Chile
Lines: 17
Message-ID: <frogf0$mal$1@helcaraxe.dcc.uchile.cl>
References: <3394b760-72db-46a1-a587-80153b21be4c@i29g2000prf.googlegroups.com> <Xns9A58AEBD24FD9jmsnews@201.238.250.229> <80a9289e-ea0a-4618-9ccc-170a4a54032e@p73g2000hsd.googlegroups.com> <2bb9b53b-5593-4dae-8090-fb53244b760a@e25g2000prg.googlegroups.com> <fqovjn$tea$1@helcaraxe.dcc.uchile.cl> <873aqrdoea.fsf@dogbert.simple.cl>
NNTP-Posting-Host: anakena.dcc.uchile.cl
X-Trace: helcaraxe.dcc.uchile.cl 1205847328 22869 192.80.24.6 (18 Mar 2008 13:35:28 GMT)
X-Complaints-To: newsmaster@dcc.uchile.cl
NNTP-Posting-Date: Tue, 18 Mar 2008 13:35:28 +0000 (UTC)
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/2.6.23-gentoo-r8 (i686))