On 28 Dez 2004, [EMAIL PROTECTED] wrote:

> Karl,
> 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
used that).

'.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.



   Karl
-- 
Please do *not* send copies of replies to me.
I read the list

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to