Answers for "pyhton see if string is a word"

63

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 "pyhton see if string is a word"

Python Answers by Framework

Browse Popular Code Answers by Language