Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find char in str python

>>> str = "Messi is the best soccer player"
>>> str.find("soccer")
18
>>> str.find("Ronaldo")
-1
>>> str.find("Messi")
0
Source by www.afternerd.com #
 
PREVIOUS NEXT
Tagged: #find #char #str #python
ADD COMMENT
Topic
Name
7+9 =