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
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",
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'
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 seqs alernative;
("xyz", "7890")
output: x7y8z90
any help would be appreciated..
--
http://mail.python.org/mailman/listinfo/python-list