find string case insensitive python code example
Example 1: how to make a string case insensitive in python
if thing.lower() == "text":
Example 2: python contains string case insensitive
>>> str = "Messi is the best SoCceR player"
>>> "soccer" in str.lower()
True
>>> "football" in str
False