a = 'this is a string'b = 'test' if (a.find(b) > -1): print 'found substring in string'else: print 'substring not found in string'
Standard input is empty
substring not found in string
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!