Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python - How To Check if a String Contains Word

string = "This contains a word" if "word" in string:     print("Found") else:     print("Not Found")
Source by www.thecodeteacher.com #
 
PREVIOUS NEXT
Tagged: #Python #How #To #Check #String #Contains #Word
ADD COMMENT
Topic
Name
6+3 =