summaryrefslogtreecommitdiff
path: root/progs/unparsable_programs/a706.py
blob: dcb86aa609b4dc9311158f24eff21856d48c865b (plain)
1
2
3
4
5
6
7
8
9
10
def dig_let(s):
 d=l=0
 for c in s:
    if c.isdigit():
        d=d+1
    elif c.isalpha():
        l=l+1
    else:
        pass
 return (l,d)