How to understand python slicing with a negative k index?
<p>Can someone explain why <code>a[:5:-1] != a[:5][::-1]</code>?</p>

<pre><code>&gt;&gt;&gt; a = range(10)
&gt;&gt;&gt; a[:5][::-1]
[4, 3, 2, 1, 0]
&gt;&gt;&gt; a[:5:-1]
[9, 8, 7, 6]
</code></pre>
