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"))



Output


Picture showing the output of Find function in python



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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250