I have 2 strings,
string1
string2
I'd like to make a conditional that if string2 is not in string1 print error message. How can I do that.
I tried:
[code=python]
if (string2 in string1)='False ':
print 'error'
[/code]
but it did not work
string1
string2
I'd like to make a conditional that if string2 is not in string1 print error message. How can I do that.
I tried:
[code=python]
if (string2 in string1)='False ':
print 'error'
[/code]
but it did not work
Comment