Answer to Question #4487 in Python for Eric
answer (an integer).
This function is internally using a for loop(in Python language, and keep it as simple as possible) please
for i in range(len(s)):
(s[i]>='0') and (s[i]<='9'):
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
swithoutdigits = s.translate(None, '1234567890')
digitcount = len(s) - len(swithoutdigits)