cheeses:
    print cheese
</font></pre><font color="black">This works well if you only need to read the elements of the
list. But if you want to write or update the elements, you
need the indices. A common way to do that is to combine
the functions <tt>range</tt> and <tt>len</tt>:</font><br />
<br />
<a name="@default482"></a>
<a name="@default483"></a>
<pre><font size="4" color="blue">
for i in range(len(numbers)):
    numbers[i] = numbers[i] * 2
</font></pre><font color="black">This loop traverses the lis