LearnPy Hub
← Regular Expressions problems
Easy

Count the Digits

Read a line and print how many digit characters it contains, using re.findall(r'\d', text).

Input

One line.

Output

One integer.

Sample 1

Input
a1b2c3
Output
3

Sample 2

Input
hello
Output
0
solution.py
Output appears here
Count the Digits · Python practice problem · LearnPy Hub