post_title = 'ajkdshfbakerg'
k = 'meo me'
k = kw.split()
if all([x in post_title for x in k]):
print('True')
else:
print('false')
k = kw.split()
if any([x in post_title for x in k]):
print('True')
else:
print('false')
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter