if mismatches:
    print('      ', ''.join(' ' if i not in mismatches else '*' for i, c in
        enumerate(searchseq.sequence)))
else:
    print('<exact match>')
Locate "N Gram" substrings that are smallest distance away from a target string N character long