summaryrefslogtreecommitdiff
path: root/progs/a761.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a761.py')
-rw-r--r--progs/a761.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/a761.py b/progs/a761.py
new file mode 100644
index 0000000..664f653
--- /dev/null
+++ b/progs/a761.py
@@ -0,0 +1,2 @@
+def sum_of_digits(nums):
+ return sum(int(el) for n in nums for el in str(n) if el.isdigit()) \ No newline at end of file