diff options
Diffstat (limited to 'progs/a163.py')
-rw-r--r-- | progs/a163.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a163.py b/progs/a163.py new file mode 100644 index 0000000..a624d5c --- /dev/null +++ b/progs/a163.py @@ -0,0 +1,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
\ No newline at end of file |