title: Index method for string variable, inside conditional loop, not returning desired results
body: <pre><code>text = "iiiiiiWiiiiiiWWiiiiW"
  for char in text:
      if (char == "W"):
          z = text.index(char)
          print z
  </code></pre>
  
  <p>I'm having a problem with the above code. I'm not getting my desired response.
  I am receiving:</p>
  
  <pre><code>&gt;&gt;&gt;9
  &gt;&gt;&gt;9
  &gt;&gt;&gt;9
  &gt;&gt;&gt;9
  </code></pre>
  
  <p>...instead of getting something like...</p>
  
  <pre><code>&gt;&gt;&gt;9
  &gt;&gt;&gt;16
  &gt;&gt;&gt;17
  &gt;&gt;&gt;22
  </code></pre>
  
  <p>This is confusing me :( please help and thanks :)</p>