in function demo : in : Buildin Function : Python examples (example source code) Organized by topic

C++
PHP
Python
Python Home »  Buildin Function   » [  in  ]  Screenshots 
 



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
1.  in a range in a range
2.  in can be applied to any 'iterable' object in can be applied to any 'iterable' object
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.