hamming_distance function
Returns the Hamming distance between two strings. This equates to the number of characters at
corresponding positions within the input strings where the characters are different. The input
strings must be the same length, and the comparison is case-sensitive.
Syntax
hamming_distance(string1,string2)
Arguments
string1 → a string
string2 → a string
Example
hamming_distance('abc','xec') → 2
hamming_distance('abc','ABc') → 2
hamming_distance(upper('abc'),upper('ABC')) → 0