Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python make comparison non case sensitive

mystring = "Hello"
non_case_sensitive_string= mystring.casefold()
#this makes it non-case-sensitive.
#if you want to make it lowercase, use the following:
mystring = "Hello"
lowercase_mystring = mystring.lower()
 
PREVIOUS NEXT
Tagged: #python #comparison #case #sensitive
ADD COMMENT
Topic
Name
7+1 =