NumPy - Fundamentals
Given a NumPy array
arr = np.array([1, 2, 3, 4, 5]), how can you create a new array containing only the even numbers?arr = np.array([1, 2, 3, 4, 5]), how can you create a new array containing only the even numbers?15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions