find(\'asdf\',\'\') finds an empty string in \'asdf\' hence it returns 0. Similarly, find(\'asdf\',\'\',3) starts to sea
find(\'asdf\',\'\')
\'asdf\'
0
find(\'asdf\',\'\',3)
Because "asdf" without its first four characters still does contain "". A harder check comes into play when the index exceeds the length of the string, but having an index equal to the string is equivalent to "".find().
"asdf"
""
"".find()