I am looking for an effective way to check if a short string is in a long string. I saw some suggestions on this thread: Python efficient way to check if very large string contains a substring
However, I didn't see the use of find() there. Is it expensive to use find() function? What is the time complexity?
I've looked at the Wiki page but didn't find find() there. https://wiki.python.org/moin/TimeComplexity