Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #string #case #insensitive
ADD COMMENT
Topic
Name
6+5 =