Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
List comprehension with .isdigit() as filter solution in Clear category for Count Digits by ezebw2
def count_digits(text: str) -> int:
"""
Given a text(string), counts the amount of digits in it
"""
return len([character for character in text if character.isdigit()])
Aug. 9, 2020