. 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
In case you expect more than one maximum this will work
There is a simple way
Maybe not the best solution, but it works.
I’ve seen this on another forum and this is what help to resolve the problem
Have you ever tried this solution
Have you ever tried this solution