title: How to remove a range from start to end enclusive from a list
body: <pre><code>def remove_section(alist, start, end):
      """
      Return a copy of alist removing the section from start to end inclusive
  
      &gt;&gt;&gt; inlist = [8,7,6,5,4,3,2,1]
      &gt;&gt;&gt; remove_section(inlist, 2, 5)
      [8, 7, 2, 1]
      &gt;&gt;&gt; inlist == [8,7,6,5,4,3,2,1]
      True
      &gt;&gt;&gt; inlist = ["bob","sue","jim","mary","tony"]
      &gt;&gt;&gt; remove_section(inlist, 0,1)
      ['jim', 'mary', 'tony']
      &gt;&gt;&gt; inlist == ["bob","sue","jim","mary","tony"]
      True
      """
  </code></pre>
  
  <p>I'm a bit stumped as to how to go about doing this any help would be much appreciated.</p>