title: Why python's list slicing doesn't produce index out of bound error?
body: <p>While playing with array slicing I noticed that <code>a[index:] or a[:index]</code> type of slicing doesn't produce array index out of bound error for strings.</p>
  
  <pre><code>str = "abcde"
  print str[10:]
  print str[:10]
  </code></pre>
  
  <p>produces output :</p>
  
  <pre><code>''
  abcde
  </code></pre>
  
  <p>Can anybody explain why? Shouldn't it produce array index out of bounds error ? Python does produce this error if I try to do something like : <code>print str[10]</code>.</p>