find the index of a substring : Index : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Index »

 

find the index of a substring


searchStr =  "Red Blue Violet Green Blue Yellow Black"

print searchStr.index("Blue")



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo String
» Index