How to refer to a range of items on a list on python? : <p>Let's say I have a program that generates lists </p>

<pre><code>list1 = [a, b, c, d, e, f, g]
list2 = [a, b, c, d, e, f, g, h, i, j, k, l, m]
list3 = [a, b, c, d, e, f, g, h, i, j, k, l, m, o, p]
</code></pre>

<p>how can i write a piece of code that extracts all the items from a given index  all the way to the end and assigns them to a new variable?</p>

<p>For example, if I want to get all the items from index 3 to the end of the list of list3 and assign them to list4</p>

<pre><code>list4 = [d, e, f, g, h, i, j, k, l, m, o, p]
</code></pre>

<p>I am repeating myself when I say 'to the end' beacuse I need something that works for all the lists that variy in ranges. </p>
