def contains_digit(input_string):
    """
    check if string contains digit
    >>> contains_digit("5")
    True
    >>> contains_digit("5a")
    True
    >>> contains_digit("cat")
    False
    """
    return any(_.isdigit() for _ in input_string)