I am new to python and created a small function that does a cluster analysis. The quick rundown is I have to compare two arrays a multitude of times, until it no longer changes. For that I have used a while loop, that loops as long as they are not equal, but I find that I get two different results from != and not ==. MWE:
import numpy as np
a = np.array([1,1,1])
b = np.array([1,2,1])
print((a != b).all())
print(not (a == b))