summaryrefslogtreecommitdiff
path: root/progs/a163.py
blob: a624d5c80d75f08a6315d7e3562697bc6c1b2974 (plain)
1
2
3
4
5
def number_ctr(str):
      number_ctr= 0
      for i in range(len(str)):
          if str[i] >= '0' and str[i] <= '9': number_ctr += 1     
      return  number_ctr