Answers for "Get all the elements from a that are between 5 - 10. a = np.random.randint(0,15, size=(4,4)) a[np.where((a >= 5) & (a <= 10))] a[(a >= 5) & (a <= 10)] a[np.all((a >= 5) & (a <= 10))] a[np.any((a >= 5) & (a <= 10))] Both A and B are correct"

Code answers related to "Get all the elements from a that are between 5 - 10. a = np.random.randint(0,15, size=(4,4)) a[np.where((a >= 5) & (a <= 10))] a[(a >= 5) & (a <= 10)] a[np.all((a >= 5) & (a <= 10))] a[np.any((a >= 5) & (a <= 10))] Both A and B are correct"

Python Answers by Framework

Browse Popular Code Answers by Language