python string contains case insensitive code example
Example 1: how to make a string case insensitive in python
if thing.lower() == "text":
Example 2: python string match ignore case
if firstStr.lower() == secStr.lower():
print('Both Strings are same')
else:
print('Strings are not same')
Example 3: How to make String.Contains case insensitive?
Assert.IsTrue(text.ToUpper().Contains("Sample".ToUpper()));