Answers for "check if charact in a string python"

1

check if charact in a string python

fullstring = "StackAbuse"
substring = "tack"

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

Code answers related to "check if charact in a string python"

Python Answers by Framework

Browse Popular Code Answers by Language