24 views
Problem: I am really confused as to why this error appears. Here is my code: import numpy as np x = np.array([0, 0]) y = np.array([10, 10]) a = np.array([1, 6]) b = np.array([3, 7]) points = [x, y, a, b] max_pair = [x, y] other_pairs = ... 5, 6] not in max_pair) >>>False Why does this happen when using NumPy arrays? not in/inis ambiguous for existence? What is the correct syntax using any()\all()?
asked
Jan 26
sasha
16.2k points