[Tutor] Re: Soem list operation questions?
sigurd at 12move.de
Tue Dec 28 21:29:46 CET 2004
On 28 Dez 2004, singingxduck at gmail.com wrote:
> The ''.join() method was the first one suggested. Roel then suggested
> a math-based method, which I attempted to improve upon.
I know. I read it all; ''.join() was suggested together with a list
comprehension (in such simple situations map() is IMO nicer to read so I
'.join(...) is for that problem a perfekt solution: it's short, easy to
read and understand and scales well. Why searching for a more
complicated solution if such a good one exists? It may be a nice
lecture but then you should put a big exclamation mark near it, so
Python beginners (we are on a Tutor list) do not pick up wrong habits.
Please do *not* send copies of replies to me.
I read the list
More information about the Tutor