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