<jupyter_start><jupyter_text>Objective You are required to write a function for counting the number of occurrences of digits, lower case letters and upper case letters in a string.- The input is a string for processing.- The output should be three integers indicating the occurrence numbers of digits, lower case letters and upper case letters, repectively.- For instance, if the input is "My Example 1", then 1, 7 and 2 should be returned.   Code<jupyter_code>def count_character(s):
    """
    Count the occurence numbers of digits,
    lower case and upper case letters in the input string.
    """
    count_digit = 0
    count_lower = 0
    count_upper = 0
    for c in s:
        if c.isdigit():
            count_digit += 1
        elif c.islower():
            count_lower += 1
        elif c.isupper():
            count_upper += 1
    return count_digit, count_lower, count_upper
count_character("My Example 1")
input_str = "Today is a good day. --- 20200914"
print("The number of digits, lower case and upper case letters in this string are {}.".format(count_character(input_str)))<jupyter_output>The number of digits, lower case and upper case letters in this string are (8, 14, 1).
{'fraction_non_alphanumeric': 0.07364016736401674, 'fraction_numerical': 0.019246861924686193, 'mean_word_length': 3.2562277580071175, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '520631', 'license': 'MIT', 'n_tokens_mistral': 355, 'n_tokens_neox': 321, 'n_words': 155, 'path': 'practice/example1.ipynb', 'repo_name': 'Pengeace/PythonTutorial', 'size': '1195'}