noob python question, extract letter from list
<p>not sure why this isn't working.
error I'm getting: <code>ord() expected a character, but string of length 0 found</code></p>

<p>code: </p>

<pre><code>phrase =  'test'
number = 0
text = 0
random1 = ''

while (number &lt;= len(phrase)):

    letter = phrase[number:number+1]

    text = ord(letter) - ord('a')
    ....
    number = number + 1
</code></pre>

<p>if a print letter, i get the <code>t</code> for the first iteration</p>

<p>thanks,</p>
