On Nov 15, 6:20 am, 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".

You appear to be gravely mistaken:

| >>> stringa = "hi"
| >>> stringb = "hiyoooo"
| >>> returnVal = stringa.find(stringb);
| >>> returnVal
| -1

> How do I solve this?

You need to tell us why you thought so; then, maybe, we can help.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to