title: How can I re-iterate from the beginning of a string after iterating through it?
body: <p>I am sorry, but I couldn't think of any other way to put this question. I find many coding questions regarding this topic, where after iterating through a <code>string</code>, I have to reiterate through the beginning of the <code>string</code>(where <em>new index=index of last element + 1</em>).</p>
  <p>Suppose there is a string:</p>
  <pre><code>S='abcdefgh'
  </code></pre>
  <p>I want to iterate through each and every element, where the indexes are like this:</p>
  <pre><code>a  b  c  d  e  f  g  h
  
  0  1  2  3  4  5  6  7
  
  8  9  10 11 12 13 14 15.... and so on.
  </code></pre>
  <p>I am a noob programmer so please excuse me for these silly questions. So, how do I achieve this kind of indexing?</p>