Question: 
Write a function to check if the given tuple list has all k elements.


Model's Code:
def check_k_elements(tuple_list, k):
    return all(k in t for t in tuple_list)



Sample Correct Code:
def check_k_elements(test_list, K):
  res = True
  for tup in test_list:
    for ele in tup:
      if ele != K:
        res = False
  return (res) 


Asserts:
assert check_k_elements([(4, 4), (4, 4, 4), (4, 4), (4, 4, 4, 4), (4, )], 4) == True
assert check_k_elements([(7, 7, 7), (7, 7)], 7) == True
assert check_k_elements([(9, 9), (9, 9, 9, 9)], 7) == False


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 26 of 974: 20/26 (76.92307692307693%): success