Skip to main content
Post Undeleted by Amrit
Post Deleted by Amrit
Rollback to Revision 1
Source Link
Amrit
  • 2.2k
  • 1
  • 24
  • 42

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.

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.

fixed formatting
Source Link
demonplus
  • 5.8k
  • 12
  • 56
  • 73

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.

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.

Source Link
Amrit
  • 2.2k
  • 1
  • 24
  • 42

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.