human
Write a function to check if the given tuples contain the k or not. Here is a solution in Python:
assistant
#Here is the Python code you requested.
 def check_K(test_tup, K):
  res = False
  for ele in test_tup:
    if ele == K:
      res = True
      break
  return res