Answers for "python string check word"

64

how to check if there is a word in a string in python

>>> str = "Messi is the best soccer player"
>>> "soccer" in str
True
>>> "football" in str
False
Posted by: Guest on December-09-2019

Code answers related to "python string check word"

Python Answers by Framework

Browse Popular Code Answers by Language