# Write a Python program to find tuples which have all elements divisible by K from a list of tuples # Python3 code to demonstrate working of# K Multiple Elements Tuples# Using list comprehension + all()  # initializing listtest_list = [(6, 24, 12), (7, 9, 6), (12, 18, 21)]  # printing original listprint("The original list is : " + str(test_list))  # initializing KK = 6  # all() used to filter elementsres = [sub for sub in test_list if all(ele % K == 0 for ele in sub)]  # printing resultprint("K Multiple elements tuples : " + str(res))