I\'ve got a large one-dimensional array of integers I need to take slices off. That\'s trivial, I\'d just do a[start:end]. The problem is that I need more of th
a[start:end]
If you want it in one line, it would be:
x=[list(a[s:e]) for (s,e) in zip(start,end)]