python3 check if string is in string code example
Example 1: python check if string in string
if "blah" not in somestring:
continue
Example 2: check if string contains python
>>> str = "Messi is the best soccer player"
>>> "soccer" in str
True
>>> "football" in str
False