DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+3 =
Submit