Middle third again


#1



I do understand this:
middle_third = to_21[7:14]

But not why this is working too:
middle_third = to_21[7:-7]


Replace this line with your code.


#2

what is it you don't understand about it? you can use negative values to start from the right hand sight, for example:

hello[:-1]

would give hell. you slice off the right side of the list, this works perfectly for your to_21 problem


#3

Thank you, I got it now. It is where we do cut (slice). I understood it the way that the number defined the end of the list, so did not get the negative value of it, now I understand that it points to the place in the list where we make the cut from the left when positive, from the right when negative. .


#4