George Sakkis <[EMAIL PROTECTED]> writes: > And if the iterables don't necessarily support len(), here's a more > general solution:
Not trying to pick on you personally but there's this disease when a newbie comes with a basically simple question (in this case, how to solve the problem with ordinary lists) and gets back a lot of complex, overly general "graduate level" solutions. There's a humorous set of Haskell examples that takes this to extremes: http://www.willamette.edu/~fruehr/haskell/evolution.html -- http://mail.python.org/mailman/listinfo/python-list