fork download
  1. a = 'this is a string'
  2. b = 'test'
  3.  
  4. if (a.find(b) > -1):
  5. print 'found substring in string'
  6. else:
  7. print 'substring not found in string'
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
substring not found in string