Python how to check if a string contains a word
<p>i am trying to check if str1 exist in str2</p>

<pre><code>def string_contains(str1,str2):
    return bool (str1 in str2)

print (string_contains("llo","hello how are you"))
# expected false but return value is true
# the possible true for s1 is hello or hello how or hello how are
# hello how are you
</code></pre>