title: Replacing a sublist with another sublist in python
body: <p>I want to replace a sub-list from list <code>a</code>, with another sub-list. Something like this:</p>
  
  <pre><code>a=[1,3,5,10,13]
  </code></pre>
  
  <p>Lets say I want to take a sublist like:</p>
  
  <pre><code>a_sub=[3,5,10]
  </code></pre>
  
  <p>and replace it with</p>
  
  <pre><code>b_sub=[9,7]
  </code></pre>
  
  <p>so the final result will be </p>
  
  <pre><code>print(a) 
  &gt;&gt;&gt; [1,9,7,13]
  </code></pre>
  
  <p>Any suggestions?</p>