> The zip solution is succinct. > > Also, by the virtue of being a built-in function zip() should be > faster than the second approach.
Complexity of first solution is O(n) and complexity of second solution is O(n^2) because it using values.index function, which is O(n). _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers