. Advertisement .
..3..
. Advertisement .
..4..
I am learning about “if substring not in string python”, below is a code I wrote
fullstring = "Stestdata"
substring = "test"
if fullstring.find(substring) != -1:
print "substring in string python!"
else:
print "substring not in string python!"
Anyone have a better idea? Let’s discuss this together
There is a simple way
In case you expect more than one maximum this will work
I’ve seen this on another forum and this is what help to resolve the problem
Have you ever tried this solution
Maybe not the best solution, but it works.
Have you ever tried this solution