in function demo : in « Buildin Function « Python
- Python
- Buildin Function
- in
in function demo

name = "ABCDESHGIs"
if 's' in name:
print 'String contains the letter "s".'
else:
print 'String does not contain the letter "s".'
Related examples in the same category