0 out of 464 challenges solved
Write a Python function `check_k(test_tup, k)` that checks if the given value `k` exists in the tuple `test_tup`. The function should return `True` if `k` is found in the tuple, and `False` otherwise. #### Example Usage ```python [main.nopy] print(check_k((10, 4, 5, 6, 8), 6)) # Output: True print(check_k((1, 2, 3, 4, 5, 6), 7)) # Output: False print(check_k((7, 8, 9, 44, 11, 12), 11)) # Output: True ```
def check_k(test_tup, k):
"""
Check if the value k exists in the tuple test_tup.
Args:
test_tup (tuple): The tuple to search in.
k (any): The value to search for.
Returns:
bool: True if k is found in test_tup, False otherwise.
"""
# Placeholder for the solution
pass