On 2006-08-19, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
> unexpected wrote:
>> If have a list from 1 to 100, what's the easiest, most elegant
>> way to print them out, so that there are only n elements per
>> line.
>
> I've run into this problem a few times, and although many
> solutions have been
In <[EMAIL PROTECTED]>, Justin Azoff
wrote:
> Rhamphoryncus wrote:
> [snip interesting istep function]
>
>> Would anybody else find this useful? Maybe worth adding it to itertool?
>
> yeah, but why on earth did you make it so complicated?
>
> def istep(iterable, step):
> a=[]
> for x
Rhamphoryncus wrote:
> I've run into this problem a few times, and although many solutions
> have been presented specifically for printing I would like to present a
> more general alternative.
[snip interesting istep function]
> Would anybody else find this useful? Maybe worth adding it to itert
unexpected wrote:
> If have a list from 1 to 100, what's the easiest, most elegant way to
> print them out, so that there are only n elements per line.
I've run into this problem a few times, and although many solutions
have been presented specifically for printing I would like to present a
more g