title: List slicing out of index
body: <pre><code>&gt;&gt;&gt; a = [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, &quot;d&quot;, &quot;e&quot;, &quot;f&quot;, &quot;g&quot;, &quot;h&quot;, &quot;l&quot;]
  &gt;&gt;&gt; a[30:]
  []
  &gt;&gt;&gt; a[:30]
  ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'l']
  </code></pre>
  <p>I am trying to understand the logic behind this slicing. For example, when we try to reach element by indexing, it will give us an IndexError.</p>
  <pre><code>&gt;&gt;&gt; a[12]
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  IndexError: list index out of range
  </code></pre>
  <p>We have got total 9 elements in the list. Yet, we can use any indexes which are greater than 8. Any technical explanations would be highly appreciated.</p>