title: function to check if a string contains all elements of another string
body: <p>I need to write a function that takes two string arguments, and returns TRUE if the characters of the second string exist in the first one, else returns FALSE. For example: given <code>str1 = 'xBxxAxxCxxAxCxxBxxxAxCxBxxxAxxBxCx'</code> and <code>str2 = &quot;ABC&quot;</code>, returns <code>TRUE</code> (<code>str2 = &quot;ABCD&quot;</code>, returns <code>FALSE</code>).</p>
  <p>I tried different variations of code and cannot get the correct one. I have the following code here where I used <code>in</code> built in function but it doesn't seem to work:</p>
  <pre><code>def minSubStr(str1, str2):
      str1 = input(&quot;Enter the first string: &quot;)
      str2 = input(&quot;Enter the second string to check if the characters exist in the first string: &quot;)
      if str2 in str1: 
          return True
      else:
          return False
  minSubStr(str1, str2)
  </code></pre>