How to address an earlier element in a list/string with for?
<p>So my question is - I have a code like that:</p>

<pre><code>test_text = "lorem ipsum dolor sit amet"

for each in test_text:
   #do some stuff
</code></pre>

<p>And while it surely works for the letter that's currently "highlighted" by for, I can't do anything to the previous ones without having an additional variable that I would increment in each iteration so that I could address test_text[said_variable]. I mean - let's say that for every letter user wants, I have to print the letter that's five index places before the said letter - without the additional variable, I can't do this. Could someone please help? Can I address something prior (or after) to what for is now working on without having to play like that?</p>

<p>I'm sorry for the newbish question, but I'm just starting in Python and couldn't find anything on the matter.</p>
