input: Write a python function to check if a word is contained in a query string.
  assert check_contains("hello world", "world") == True
  assert check_contains("hello world", "python") == False
  assert check_contains("python programming", "programming") == True
output: def check_contains(query: str, word: str) -> bool:
      return word in query