summaryrefslogtreecommitdiff
path: root/progs/a44.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a44.py')
-rw-r--r--progs/a44.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/progs/a44.py b/progs/a44.py
new file mode 100644
index 0000000..60eb2f5
--- /dev/null
+++ b/progs/a44.py
@@ -0,0 +1,8 @@
+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) \ No newline at end of file