How to check if a string contains a substring in Python?

I am working on a Python project, and I need to check if a string contains a specific substring. Does Python have a built-in method to check for the existence of substrings in a string? If not, what’s the most efficient way to do this?

Here’s the code I am currently using:

Is there a better way to check if a string contains a substring in Python? Any help or suggestions would be greatly appreciated.