<jupyter_start><jupyter_text>Python Dictionary* Dictionaries can be used to store key, value pairs in Python for example: ```{'first_name': 'abhinav', 'last_name': 'upadhay'}```* Ordering of the items in the dictionary is not guranteed* They are good for fast search or lookup operations  Creating an empty dictionary<jupyter_code>empty_dictionary = {}
print empty_dictionary<jupyter_output>{}<jupyter_text>Creating dictionary with values<jupyter_code>filled_dictionary = {'first_name': 'abhinav', 'last_name': 'upadhyay'}
print filled_dictionary<jupyter_output>{'first_name': 'abhinav', 'last_name': 'upadhyay'}<jupyter_text>Adding values to the dictionary<jupyter_code>food_menu = {}
food_menu['pizza'] = 300
food_menu['sandwich'] = 30
food_menu['tea'] = 10
print food_menu<jupyter_output>{'tea': 10, 'sandwich': 30, 'pizza': 300}<jupyter_text>*Notice the ordering of the items in the output above*  Reading values from a dictionaryValues from the dictionary can be read in exactly the same way, they are stored in it.<jupyter_code>pizza_price = food_menu['pizza']
print pizza_price
tea_price = food_menu['tea']
print tea_price<jupyter_output>10<jupyter_text>Deleting item from the dictionaryDictionaries have the ```pop()``` method which can be used to pop/remove a value with the given key<jupyter_code>food_menu.pop('tea')
print food_menu<jupyter_output>{'sandwich': 30, 'pizza': 300}
{'fraction_non_alphanumeric': 0.11231101511879049, 'fraction_numerical': 0.01511879049676026, 'mean_word_length': 8.266666666666667, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '459551', 'license': 'BSD-2-Clause', 'n_tokens_mistral': 493, 'n_tokens_neox': 456, 'n_words': 135, 'path': 'notebooks/Dictionary.ipynb', 'repo_name': 'abhinav-upadhyay/intro-to-python', 'size': '1389'}