Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python find string

message = 'Python is a fun language to program with'

# check the index of 'fun'
print(message.find('fun'))

# Output: 12
 
PREVIOUS NEXT
Tagged: #python #find #string
ADD COMMENT
Topic
Name
4+6 =