Say I have a list:
[0,1,2,3,4,5,6,7,8,9]
From this list I want to retrieve the centre elements at positions 4, 5 and 6. So: [4,5,6]
is the output I want from this list.
I know how to remove elements, that's easy using this method:
x = [position1:] + [:position2]
But I don't know how to find those items.