Run ❯
×
Change Orientation
Change Theme, Dark/Light
from scipy.spatial.distance import hamming p1 = (True, False, True) p2 = (False, True, True) res = hamming(p1, p2) print(res)
0.666666666667