Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find charechtar index in string python

myString = 'Position of a character'
myString.find('s')
# 2
myString.find('x')
# -1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #charechtar #index #string #python
ADD COMMENT
Topic
Name
5+9 =