Mega Code Archive
Categories
/
Python
/
Buildin Function
In function demo
name = "ABCDESHGIs" if 's' in name: print 'String contains the letter "s".' else: print 'String does not contain the letter "s".'