Answers for "python check string case insensitive"

1

python check string case insensitive

string1 = 'Hello'
string2 = 'hello'

if string1.casefold() == string2.casefold():
    print("The strings are the same (case insensitive)")
else:
    print("The strings are NOT the same (case insensitive)")
Posted by: Guest on April-27-2022
10

python string match ignore case

if firstStr.lower() == secStr.lower():
    print('Both Strings are same')
else:
    print('Strings are not same')
Posted by: Guest on April-08-2020
0

python check string case insensitive

string1 = 'Hello'
string2 = 'hello'

if string1.lower() == string2.lower():
    print("The strings are the same (case insensitive)")
else:
    print("The strings are NOT the same (case insensitive)")
Posted by: Guest on April-27-2022

Code answers related to "python check string case insensitive"

Python Answers by Framework

Browse Popular Code Answers by Language