Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python how to search in string

search_text = 'man'

str = 'You are good man.'

if search_text in str:
    print(f'Found "{search_text}" in string')
else:
    print('Not found')
 
PREVIOUS NEXT
Tagged: #Python #search #string
ADD COMMENT
Topic
Name
5+4 =