Re: how do i merge two sequence

2012-04-19 Thread Hegedüs Ervin
Hello, On Thu, Apr 19, 2012 at 08:54:28AM +0200, Peter Otten wrote: > Have a second look at the desired output. Your suggestion doesn't produce > that. oh', I'm really sorry, I was distracted... thanks: a. -- I � UTF-8 -- http://mail.python.org/mailman/listinfo/python-list

Re: how do i merge two sequence

2012-04-18 Thread Peter Otten
Ervin Hegedüs wrote: > On Wed, Apr 18, 2012 at 10:41:00PM +0200, Peter Otten wrote: >> Python Email wrote: >> >> > how do i merge two seqs alernative; >> > >> > ("xyz", "7890") >> > output: x7y8z90 >> >> >>> import itertools >> >>> "".join(a+b for a, b in itertools.izip_longest("xyz", "7890",

Re: how do i merge two sequence

2012-04-18 Thread Ervin Hegedüs
hi, On Wed, Apr 18, 2012 at 10:41:00PM +0200, Peter Otten wrote: > Python Email wrote: > > > how do i merge two seqs alernative; > > > > ("xyz", "7890") > > output: x7y8z90 > > >>> import itertools > >>> "".join(a+b for a, b in itertools.izip_longest("xyz", "7890", > fillvalue="")) > 'x7y8z90'

Re: how do i merge two sequence

2012-04-18 Thread Peter Otten
Python Email wrote: > how do i merge two seqs alernative; > > ("xyz", "7890") > output: x7y8z90 >>> import itertools >>> "".join(a+b for a, b in itertools.izip_longest("xyz", "7890", fillvalue="")) 'x7y8z90' -- http://mail.python.org/mailman/listinfo/python-list

how do i merge two sequence

2012-04-18 Thread Python Email
how do i merge two seqs alernative; ("xyz", "7890")  output: x7y8z90 any help would be appreciated.. -- http://mail.python.org/mailman/listinfo/python-list