[Tutor] number of mismatches in a string

Emile van Sebille emile at fenx.com
Tue Mar 13 22:09:22 CET 2012


On 3/2/2012 11:11 AM Hs Hs said...
> Hi:
> I have the following table and I am interested in calculating mismatch
> ratio. I am not completely clear how to do this and any help is deeply
> appreciated.
>
...and then there's always the standard library:

Help on class SequenceMatcher in module difflib:

class SequenceMatcher
  |  SequenceMatcher is a flexible class for comparing pairs of sequences of
  |  any type, so long as the sequence elements are hashable.


Emile



More information about the Tutor mailing list