title: How to specifically print out a word without losing its counted length
body: <p>I'm having a problem with my code. I have .csv file named test.csv which contains 3 sentences and a code that counts each word on my sentence, it determines the number of the first letter and the last but when i tried the for loop below, it counts the specific words but only the specific word, it didn't count the rest of the sentences. I want to print out a specific word while their number of position remains.</p>
  
  <pre><code>with open("test.csv") as e:
      text = e.read()
  
  newtext = text.split()
  words = '' 
  
  currCount = 0 
  
  
  for words in newtext:
  
      toAdd = len(words)
      if words == 'is':
          print ("("+str(currCount)+","+str(currCount+toAdd)+")"+ words)
      elif words != 'is':
          continue
  
      currCount+= toAdd+1
  
      if words is ".":
          currCount = 0
  </code></pre>
  
  <p>This is the sentence inside of "test.csv".</p>
  
  <pre><code>my name is bob .
  bob is my name .
  my real name is lob .
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Output                                   What i want
  (0,2)is                                  (8,10)is
  (3,5)is                                  (4,6)is
  (6,8)is                                  (13,15)is
  </code></pre>