DEV Community

Punitha
Punitha

Posted on

Algebra and Logical Operations

Algebra

Step 1:

Output:

Step 2:

Output:

Logical Operations

  • NumPy provides all() and any() to check conditions.

np.all()?

  • np.all() returns True only if all elements satisfy the condition.

Step 1:

Output:

np.any()?

  • np.any() returns True if at least one element satisfies the condition.

Step 1:

Output:

Top comments (0)