Slice vs Stride while reversing string
<p>Normally to reverse a list one should do the following:</p>

<pre><code>&gt;&gt;&gt;&gt;l = [1, 2, 3, 4, 5]
&gt;&gt;&gt;&gt;l[::-1]  
[5, 4, 3, 2, 1]
</code></pre>

<p>But isn't the exact syntax like this:</p>

<pre><code>list[&lt;start&gt;:&lt;end&gt;:&lt;stop&gt;]
</code></pre>

<p>and if I don't give an optional parameter the defaults are as follows(Correct me if I am wrong:</p>

<pre><code>&lt;start&gt; = 0(Beginning of list)
&lt;end&gt;   = 5(Length of list)
&lt;step&gt;  = 1
</code></pre>

<p>So if I give the optional parameters, it should in effect produce the same result:</p>

<pre><code>&gt;&gt;&gt;&gt;l[0:5:-1]
&gt;&gt;&gt;&gt;[]
</code></pre>

<p>But instead I get an empty list(and I know why this happening), but what are the default values being taken by python in the 1st case?It should take 0 and 5 as default and produce nothing, or is <strong>[::-1]</strong> different from <strong>list[start:end:stop]</strong></p>
