check if numpy arrays are equal

(A==B).all()

Here is what the above code is Doing:
1. We’re creating a random array of integers of shape (10, 10) and assigning it to the variable A.
2. We’re creating another random array of integers of shape (10, 10) and assigning it to the variable B.
3. We’re using the .all() method to check if all the elements in A and B are equal.

The .all() method returns True if all the elements in an array are True.

The .all() method returns False if any of the elements in an array are False.

The .all() method returns True if an array is empty.