String backward another way : <p>I am very new to Python and I encountered one issue that I cannot understand. Let say I have string variable:</p>

<pre><code>myVar = "abcdefgh"
</code></pre>

<p>I want to display it backward, no problem: </p>

<pre><code>print(myVar[::-1])
</code></pre>

<p>and I get hgfedcba. Nothing surprising here. I should get the same with this somewhat verbose code:</p>

<pre><code>print(myVar[len(myVar)-1:0:-1])
</code></pre>

<p>but this time the result is hgfedcb. Then I have tried not to subtract 1 from len(myVar) and the result was exactly the same. I do not understand why, especially that lines:</p>

<pre><code>print(myVar[::1])
print(myVar[0:len(myVar):1])
</code></pre>

<p>display the same results. </p>

<p>So, my question is why print(myVar[len(myVar):0:-1]) does not display "a"?</p>
