Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python string contains

>>> str = "Messi is the best soccer player"
>>> "soccer" in str
True
>>> "football" in str
False
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #python #string
ADD COMMENT
Topic
Name
1+7 =