<jupyter_start><jupyter_text>Importing<jupyter_code>import collections<jupyter_output><empty_output><jupyter_text>Creating Default Dictionary<jupyter_code>grocery = collections.defaultdict(int)<jupyter_output><empty_output><jupyter_text>Adding a Key, Value pair in Dictionary and Printing it<jupyter_code>grocery['Apples'] = 10
grocery<jupyter_output><empty_output><jupyter_text>Adding a Key without any Value which will eventually give it a value of zero<jupyter_code>grocery['Mangoes']<jupyter_output><empty_output><jupyter_text>Printing the Final Dictionary<jupyter_code>grocery<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09165302782324058, 'fraction_numerical': 0.0032733224222585926, 'mean_word_length': 16.0, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '400168', 'license': 'MIT', 'n_tokens_mistral': 223, 'n_tokens_neox': 211, 'n_words': 33, 'path': 'Tech/Python/defDict/defDict.ipynb', 'repo_name': 'ZainRaza14/ZainRaza14.github.io', 'size': '611'}