<jupyter_start><jupyter_text>1.  `get()`<jupyter_code>print(dict_demo.get('Add','Abc')) # Checks whether the key exists or not<jupyter_output>Abc<jupyter_text>2.  `dict()`<jupyter_code># To make dictionaries
new_dict = dict(name='John',
                age=34)
new_dict
print('salary' in new_dict)<jupyter_output>False<jupyter_text>3.  `keys()`<jupyter_code>dict_demo.keys()<jupyter_output><empty_output><jupyter_text>4.  `values()`<jupyter_code>dict_demo.values()<jupyter_output><empty_output><jupyter_text>5.  `items()`<jupyter_code>dict_demo.items()<jupyter_output><empty_output><jupyter_text>6.  `clear()`<jupyter_code>new_dict.clear()
new_dict<jupyter_output><empty_output><jupyter_text>7.  `copy()`<jupyter_code>dict_cp = dict_demo.copy()
dict_cp<jupyter_output><empty_output><jupyter_text>8.  `pop()`<jupyter_code>dict_cp.pop('Name')<jupyter_output><empty_output><jupyter_text>9.  `popitem()` -> randomnly pops out (key,value)<jupyter_code>dict_cp.popitem()<jupyter_output><empty_output><jupyter_text>10.  `update()`<jupyter_code>dict_demo.update({'Name':'Jonathan'})
dict_demo<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17145421903052063, 'fraction_numerical': 0.011669658886894075, 'mean_word_length': 11.965116279069768, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 40, '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': '10', 'dir': 'jupyter-structured-clean-dedup', 'id': '525097', 'license': 'MIT', 'n_tokens_mistral': 498, 'n_tokens_neox': 477, 'n_words': 36, 'path': 'Basic_Data_Structures/Dictionary.ipynb', 'repo_name': 'binarymatter/Python_HandBook', 'size': '1114'}