Check if a word is in a string in Python

What is wrong with:

if word in mystring: 
   print('success')

Leave a Comment