Articles → Python → Find function in python

Find function in python






Purpose





Example


str = "this is string example"

print("string 'example' is found at position:", str.find("example"))
print("string 'xx' is found at position:", str.find("xx"))





Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, February 22, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250