# Hamming disctance mean number of position differ
def hammingDistaince_without(s1,s2):
    print s1 , "-" , s2
    counter=0
    print zip(s1,s2)
    for c1, c2 in zip(s1,s2):
        if (c1 !=c2):
            print c1 , " === " , c2
            counter=counter+1
    return counter


def hamming_using_oneliner(s1,s2):
    print zip(s1,s2)
    if len(s1) != len(s2):
        return
    return sum(c1 !=c2 for c1, c2 in zip(s1,s2))



if __name__=='__main__':
    # print hammingDistaince_without("muthu","kuthu")
    print hamming_using_oneliner("muthu","kuthu")
    print hamming_using_oneliner("toned","roses")
