I want to do something along the lines of... import numpy as np arr = np.linspace(0, 10, 100) s = slice(1, 10) print(arr) print(arr[~s]) How could I apply the "not" operator to a slice, so that in this case arr[~s] would be the concatenation of arr[0] and arr[10:]? Continue reading...