title: Issue with in string operator in a module in python
body: <p>When I use the operator <code>in</code> to compare strings in my program it works great but if I call it in a module I created it doesn't seem to work. I know I am making some error but not certain what it is, can anyone help?</p>
  
  <p>Here is my code:</p>
  
  <p>Module:</p>
  
  <pre><code>def checkRoots(wordChecked, rootList):
      numRoots = len(rootList);
      numTypeRoots = createList(numRoots);
      for z in range(0, numRoots):
          root = rootList[z];
          rootThere = root in word;
          if rootThere == True:
              numTypeRoots[z] = numTypeRoots[z] + 1;
      return numTypeRoots;
  </code></pre>
  
  <p>code works though when not in module as shown here:</p>
  
  <pre><code>for y in range (0, numRoots):
      root = roots[y];
      rootThere = root in word;
      if rootThere == True:
          numTypeRoots[y] = numTypeRoots[y] + 1;
  </code></pre>
  
  <p>Basic program takes a list of words in from a file and then looks to see if a particular root is in the word.  </p>
  
  <p>Thanks</p>