its giving you the index of the character/substring, not a true/false. Python, like most languages, starts arrays at 0, so in this case:
> 'dog-cat'.find( 'at') > result is 5 Its saying it found your string at array index 5, (so starting from 0, the 6th character) > Also, I getting 0 when the character are within the string? Am I doing > something wrong or is this an issue with Python. > > '2008-2009'.find( '2') > result is 0 As above. :) -matt -- http://groups.google.com/group/python_inside_maya
