title: Sort a part of a list in place
body: <p>Let's say we have a list:</p>
  
  <pre><code>a = [4, 8, 1, 7, 3, 0, 5, 2, 6, 9]
  </code></pre>
  
  <p>Now, a.sort() will sort the list in place. What if we want to sort only <em>a part</em> of the list, still in place? In C++ we could write:</p>
  
  <pre><code>int array = { 4, 8, 1, 7, 3, 0, 5, 2, 6, 9 };
  int * ptr = array;
  std::sort( ptr + 1, ptr + 4 );
  </code></pre>
  
  <p>Is there a similar way in Python?</p>