Search
 
SCRIPT & CODE EXAMPLE
 

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()
Comment

PREVIOUS NEXT
Code Example
Python :: delete database entry using name django 
Python :: python no module named 
Python :: km/h to mph python 
Python :: pandas reemplazar nan por cero 
Python :: python currency format locale 
Python :: render django 
Python :: sort a list of array python 
Python :: root mean squared error python 
Python :: # How to Prints the current working directory in python 
Python :: end python program 
Python :: save model tensorflow 
Python :: pandas nan to none 
Python :: django migrate not creating tables 
Python :: install tensorflow gpu 
Python :: remove last line of text file python 
Python :: python get parent directory 
Python :: publisher python ros 
Python :: django save image 
Python :: Pandas categorical dtypes 
Python :: python sort list 
Python :: remove element from list 
Python :: loop throughthe key and the values of a dict in python 
Python :: How to change values in a pandas DataFrame column based on a condition in Python 
Python :: import numpy financial python 
Python :: matplotlib point labels 
Python :: replace nan numpy array 
Python :: get page title by python bs4 
Python :: python slice a dict 
Python :: run exe from python 
Python :: menubar pyqt 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =