Python Function Reference

find
Return the lowest index in the string where substring sub is found.
Python 3.13
str.find(sub[, start[, end]])
sub
The substring to search for.
start
The starting position for the search.
end
The ending position for the search.
Examples
Python 3.13
>>> 'hello'.find('l')
2