Answers for "check if character is in word python"

62

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 "check if character is in word python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language