how to check if a variable contains a letter from a word python code example Example: how to check if a string contains a word python if word in mystring: print('success')