parameters: (str, set)
return_statement: return 1
docstring: Check whether sequence str contains ONLY items in set.
docstring_summary: Check whether sequence str contains ONLY items in set.
docstring_tokens: Check whether sequence str contains ONLY items in set .
function: def containsOnly(str, set):
      """Check whether sequence str contains ONLY items in set."""
      for c in str:
          if c not in set: return 0
      return 1
function_tokens: def containsOnly ( str , set ) : for c in str : if c not in set : return 0 return 1