Searching Strings for Substrings : Find : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Find »

 

Searching Strings for Substrings


searchStr =  "Red Blue Violet Green Blue Yellow Black"

print searchStr.find("Red")
print searchStr.find("Blue")
print searchStr.find("Teal")



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo String
» Find