André schrieb: > Neat idea! Indeed > > I'm far from being a decent Python programmer but I managed (for fun) > to do it in a one-liner; however, it was definitely longer (in term of > number of characters) than the more readable multi-line solution.
I made a readable version with 352 bytes and a non-readable with 290 bytes. But it's a really ugly lambda, map, reduce kludge. Looks like Perl. > > André > Tobias -- http://mail.python.org/mailman/listinfo/python-list