I've seen a few questions about copying parts from Arrays or list, but I still don't understand the logic behind it... It makes no sense for me that I can get each values by calling them by index, but it is not possible to get a part of the list by calling it by index, too...
x=[0,1,2,3,4,5]
>>>x[2]
2
>>>x[4]
4
>>>x[2:4]
[2,3]
What I am expecting in the last line would be that the command returns the value with index two,three and four !
>>> x[2:4]
[2,3,4]
Is there a command that does it the way I thought it would be?