
Available under Creative Commons-NonCommercial-ShareAlike 4.0 International License.
The word in is a boolean operator that takes two strings and returns True if the first appears as a substring in the second:
>>> 'a' in 'banana'True>>> 'seed' in 'banana'False
- 1668 reads