Please enable JavaScript to use CodeHS

CodeHS Glossary


find() Python

Python method that returns the index at which the string is found in another string, returns -1 if not found. ``` plant_index = "eggplant".find("plant") # plant_index = 3 ```