Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if string contains

fullstring = "StackAbuse"
substring = "tack"

if substring in fullstring:
    print("Found!")
else:
    print("Not found!")
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #python #check #string
ADD COMMENT
Topic
Name
3+6 =