Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
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 ```