Index Error when adding two items in a list
<p>So, I have 8 randomly generated numbers, all referenced with <code>ct[i]</code>. I want to add a number (<code>ct[i]</code>) with the one referenced by <code>ct[i+1]</code>. However, this produces a list index out of range error. What's wrong? </p>

<pre><code>for i in range(totrange):
    tot1 = ct[i] + ct[i+1]
</code></pre>

<p><code>totrange</code> is usually 8, but I wanted to have a bit of flexibility.</p>
