check string contain paticular string in python code example
Example: python string contains
>>> str = "Messi is the best soccer player"
>>> "soccer" in str
True
>>> "football" in str
False
>>> str = "Messi is the best soccer player"
>>> "soccer" in str
True
>>> "football" in str
False