<jupyter_start><jupyter_text>Finding the occurence of a letters in a string- Suppose we have a string "Interview" the output should be like the below,    i=2\    n=1\    t=1\    e=2\    r=1\    v=1\    w=1<jupyter_code>def find_occurence(word):
    len_ = len(word)
    word = word.lower()
    occurence_dict = {}
    for i in range(len_):
        if word[i] in occurence_dict:
            occurence_dict[word[i]] += 1
        else:    
            occurence_dict[word[i]] = 1
    return occurence_dict              

print(find_occurence("Interview"))<jupyter_output>{'i': 2, 'n': 1, 't': 1, 'e': 2, 'r': 1, 'v': 1, 'w': 1}
{'fraction_non_alphanumeric': 0.14583333333333334, 'fraction_numerical': 0.02564102564102564, 'mean_word_length': 2.5112359550561796, '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': '493074', 'license': 'MIT', 'n_tokens_mistral': 254, 'n_tokens_neox': 243, 'n_words': 64, 'path': 'Notebooks/Interview_Coding.ipynb', 'repo_name': 'karthikkaiplody/Practice_Repo', 'size': '624'}