Suppose we have
a = np.array([1,2,3])
for checking the type of a, we used this function
type(a)
to check the type of attribute, we used this
a.dtype
Why in the first case we used type(a)
and in the second case we used a.dtype
and why not dtype(a)
I have seen this many times in other libraries too. Kindly explain me the basics of it.