Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python str contains word

fullstring = "StackAbuse"
substring = "tack"

if substring in fullstring:
    print "Found!"
else:
    print "Not found!"
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #python #str #word
ADD COMMENT
Topic
Name
3+4 =