input: Given the text that describes the task, what is the corresponding Python function for checking if a string contains all the words in a given list?
output:     
      words_set = set(words)
      for word in words_set:
          if word not in string:
              return False
      return True
  