why python find not working

Posted by user283405 on Stack Overflow See other posts from Stack Overflow or by user283405
Published on 2010-03-25T06:59:46Z Indexed on 2010/03/25 7:03 UTC
Read the original article Hit count: 376

Filed under:
|

i am using python 2.5.2. The following code not working.

def (self, text, findText):
     index = text.find(findText)
     print index

Although the findText is present in text, but it still returns None.

I have printed the values of text and findText and they are present.

© Stack Overflow or respective owner

Related posts about python

Related posts about find