Question: Problem 2 A digit is a character in the range 0-9 Write a function to count the number of digits in a string. Your function
Problem 2 A digit is a character in the range 0-9 Write a function to count the number of digits in a string. Your function should take one parameter: o a string parameter Your function should return the number of digit characters in the string . Your function should not print anything. .Your function MUSTbe named getDigitCount Examples: "12345 "a blue house" 0 digits "a0aaa" "abre1567" "009cD8" "196$09bf&^" -> 1 digit >5 digits -> 1 digit -> 4 digits -> 4 digits
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
