title: reversing list using slicing [ : 0:-1] in Python
body: <p>I am confused in the list slicing in Python.</p>
  
  <p>For a list </p>
  
  <pre><code>L=[0,1,2,3,4,5,6,7,8,9,10]
  </code></pre>
  
  <p>I wanted to reverse the list and could get the answer by</p>
  
  <pre><code>L[::-1] 
  </code></pre>
  
  <p>getting <code>[10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]</code>.</p>
  
  <p>However, when I tried</p>
  
  <pre><code>L[10:0:-1]
  </code></pre>
  
  <p>I got <code>[10,9,8,7,6,5,4,3,2,1]</code> without <code>0</code>. 
  Neither <code>L[10:1:-1]</code> nor <code>L[10:-1:-1]</code> give the answer.</p>
  
  <p>On the other hand, <code>L[200::-1]</code>, <code>L[10:-12:-1]</code>
  gives correct answer, though <code>L[200]</code>, <code>L[-12]</code> is out of bounds.</p>
  
  <p>I would like to understand the underlying logic of Python
  for this case. 
  Thank you.</p>