to find string in text we'll use find() function

syntax

text.find(string)

example


#text    
text = "python is a great language"

index = text.find("great")

if index != -1:
    print('"great" is at index %s'% index)
    
else:
    print('"great" is not found')
        

output

#"great" is at index 12

English today is not an art to be mastered it's just a tool to use to get a result