To check whether a value can be found in a sequence, you use the in operator : Member : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Member »

 

To check whether a value can be found in a sequence, you use the in operator


permissions = 'rw' 
print 'w' in permissions 
print 'x' in permissions 
 
subject = '$$$ Get rich now!!! $$$
print '$$$' in subject



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Member