import numpy as np a = np.zeros((10,30,40,50) def function(a,i,[4,6]): return \'slicing i-th axis of a by [4,6]
How do I code this?
for e