a[1:4] creates a new list. You called reverse on this new list, not a
I have a list, a = [0,1,2,3,4,5].
I'm trying to reverse the slice a[1:4], with a[1:4].reverse(). However, the value of a does not change. Why does this happen?
Note: I don't want to know how to make this work - rather, why this happens.
Why is reverse() on specific slice of a list not working?