Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python string contains substring

fullstring = "StackAbuse"
substring = "tack"

if fullstring.find(substring) != -1:
    print "Found!"
else:
    print "Not found!"
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #python #string #substring
ADD COMMENT
Topic
Name
8+1 =