On Nov 14, 1:20 pm, korean_dave <[EMAIL PROTECTED]> wrote:
> stringa = "hi"
> stringb = "hiyoooo"
>
> I'd like it to return -1 when I do:
>
> returnVal = stringa.find(stringb);
>
> Instead, it treats stringa as "hi" and stringb as "hi".
>
> How do I solve this?

Try this:

>>> stringa = 'hi'
>>> stringb = 'hiyoo'
>>> stringa.find(stringb)
-1
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to