Answers for "check if a substring exists in a string python"

21

if substring not in string python

fullstring = "StackAbuse"
substring = "tack"

if fullstring.find(substring) != -1:
    print "Found!"
else:
    print "Not found!"
Posted by: Guest on May-01-2020

Code answers related to "check if a substring exists in a string python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language