I naively used a test with this structure, thinking that it was actually checking if a vector is contained in a matrix:
np.array([1,0]) in np.identity(2) #True
But then I discovered that also this is True:
np.array([1,1]) in np.identity(2) #True
Why is python returning True? What is actually being checked? I probably don't understand what in
does (and it's hard to google, because "in" is interpreted as a regular preposition)