title: python itertools with islice error
body: <p>I'm still learning python and I have the code below but it is not working:</p>
  
  <pre><code>from itertools import *
  
  startword = ["start",]
  stopword = ["stop",]
  text = "this is a text that starts with some test stuff and then after that it stop right here!"
  
  for i in islice(text.split(" "), startword, stopword):
      print i
  </code></pre>
  
  <p>I'm trying to print the words between the start and stop without knowing how many words are there in between.
  from the error I'm getting it look like I need an integer for start and stop parameters for islice. here is the error "<code>ValueError: Indices for islice() must be None or an integer: 0 &lt;= x &lt;= maxing.</code>"
  any other itertool that I can use?!</p>
  
  <p>Thanks,</p>