Actually all() function Return True if all elements of the iterable are true (or if the iterable is empty).
And in programming language 0 is considered as false and any other integer is considered as true.
So here in your array a,b,c every element is non zero and a.all(), b.all() and c.all() they all are seperately returning true so finally you are getting true.
Actually all() function Return True if all elements of the iterable are true (or if the iterable is empty). And in programming language 0 is considered as false and any other integer is considered as true. So here in your array a,b,c every element is non zero and a.all(), b.all() and c.all() they all are seperately returning true so finally you are getting true.