summaryrefslogtreecommitdiff
path: root/progs/a226.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a226.py')
-rw-r--r--progs/a226.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/a226.py b/progs/a226.py
new file mode 100644
index 0000000..1e92931
--- /dev/null
+++ b/progs/a226.py
@@ -0,0 +1,3 @@
+def sum_column(list1, C):
+ result = sum(row[C] for row in list1)
+ return result \ No newline at end of file