pre-PEP: Print Without Intervening Space
Marcin Ciura
ciuraNOSPAM at zeus.polsl.gliwice.pl
Sat Mar 12 09:22:38 EST 2005
Steve Holden wrote:
> You could think about teaching them the linelist.append(fn(x)) way,
> which then gives you the choice of
> "".join(linelist) - no gaps
> "\n".join(lienlist) - one item per line
> " ".join(linelist) - spaces between items.
Sure I will. Next week, when we come to list operations.
.join() they already know. I just couldn't use this approach
at the very beginning. Thanks to all who responded.
Regards,
Marcin
More information about the Python-list
mailing list