title: How to obtain a subarray in python 3
body: <p>I want to get a subarray in python 3. I have tried the following.</p>
  
  <pre><code>a = ['abcdefgh', 'abcdefgh' , 'abcdefgh']
  
  print (a[0][3:6])
  print (a[1][2:6])
  
  print  (a[0:2][3:6])
  </code></pre>
  
  <p>I get the first two results as expected. But I am not able to obtain the desired result for the 3rd print statement.</p>
  
  <p>Output :</p>
  
  <pre><code>def
  cdef
  []
  </code></pre>
  
  <p>Desired Output :</p>
  
  <pre><code>def
  cdef
  ['def', 'def']
  </code></pre>
  
  <p>Can anyone tell me how to obtain it</p>