fault502"></a>
<a name="@default503"></a>
<pre><font size="4" color="blue">
&gt;&gt;&gt; t = ['a', 'b', 'c', 'd', 'e', 'f']
&gt;&gt;&gt; t[1:3] = ['x', 'y']
&gt;&gt;&gt; print t
['a', 'x', 'y', 'd', 'e', 'f']
</font></pre>
<a name="toc96"></a>
<h2><font color="black"><a name="htoc105">8.6</a>&nbsp;&nbsp;List methods</font></h2>
<a name="@default504"></a>
<a name="@default505"></a>
<font color="black">Python provides methods that operate on lists. For example,
<tt>append</tt> adds a new element to the end of