summaryrefslogtreecommitdiff
path: root/progs/a761.py
blob: 664f6531be06bbc1f65da62cea4106a7c2acf358 (plain)
1
2
def sum_of_digits(nums):
    return sum(int(el) for n in nums for el in str(n) if el.isdigit())