Datasets:
File size: 190 Bytes
1514a0b | 1 2 3 4 5 6 7 8 9 | def get_product(val):
res = 1
for ele in val:
res *= ele
return res
def find_k_product(test_list, K):
res = get_product([sub[K] for sub in test_list])
return res |