title: Delete sublist from a list
body: <p>I want to delete a sublist from a list. I only know the starting index and the ending index. how can I delete from the list?</p>
  
  <p>I'm using the following code:</p>
  
  <pre><code>def delete_sub_list( self, cmd_list, start, end ):
          tmp_lst = []
          for i in range( len( cmd_list ) ):
              if( i &lt; start or i &gt; end ):
                  tmp_lst.append( cmd_list[ i ] )
  
          return tmp_lst
  </code></pre>
  
  <p>and I'm calling in the following way:</p>
  
  <pre><code>cmd_list = self.delete_sub_list( cmd_list, 4, 14 )
  </code></pre>