1 2 3 4 5 6 7
def check_K(test_tup, K): res = False for ele in test_tup: if ele == K: res = True break return (res)