Answers for "python string contains substring ignore case"

0

python string contains substring ignore case

string1 = "hi"
string2 = "HI"
if string1.lower() == string2.lower():
    print "Equals!"
else:
    print "Different!"
Posted by: Guest on September-11-2021

Code answers related to "python string contains substring ignore case"

Python Answers by Framework

Browse Popular Code Answers by Language