Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python contains string case insensitive

>>> str = "Messi is the best SoCceR player"
>>> "soccer" in str.lower()
True
>>> "football" in str
False
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #string #case #insensitive
ADD COMMENT
Topic
Name
5+7 =