python check if string contains substring case insensitive code example
Example: python contains string case insensitive
>>> str = "Messi is the best SoCceR player"
>>> "soccer" in str.lower()
True
>>> "football" in str
False
>>> str = "Messi is the best SoCceR player"
>>> "soccer" in str.lower()
True
>>> "football" in str
False