In article <roy-aaaeea.10571424122...@news.panix.com>, Roy Smith <r...@panix.com> wrote:
> >>> len([x for x in zip(s1, s2) if x[0] != x[1]]) Heh, Ian Kelly's version: > sum(a == b for a, b in zip(str1, str2)) is cleaner than mine. Except that Ian's counts matches and the OP asked for non-matches, but that's an exercise for the reader :-) -- http://mail.python.org/mailman/listinfo/python-list