Answers for "a word contain in python"

13

python str contains word

fullstring = "StackAbuse"
substring = "tack"

if substring in fullstring:
    print "Found!"
else:
    print "Not found!"
Posted by: Guest on November-01-2020

Code answers related to "a word contain in python"

Python Answers by Framework

Browse Popular Code Answers by Language