<jupyter_start><jupyter_text>1. Create dict_1<jupyter_code>stocks = {"Solar Capital Ltd.":"$920.44M",    
"Zoe's Kitchen, Inc.":"$262.32M",
"Toyota Motor Corp Ltd Ord":"$156.02B",    
"Nuveen Virginia Quality Municipal Income Fund":"$238.33M",
"Kinross Gold Corporation":"$5.1B",
"Vulcan Materials Company":"$17.1B",
"Hi-Crush Partners LP":"$955.69M",
"Lennox International, Inc.":"$8.05B",
"WMIH Corp.":"$247.66M",
"Comerica Incorporated":"n/a"}

for key,val in stocks.items(): 
    stocks[key] = val.replace('$', '') 
stocks<jupyter_output><empty_output><jupyter_text>2. When we iterate through the dictionary, we are actually iterating over the keys and values<jupyter_code>for key,val in stocks.items():    
        mult = val[-1] 
        stocks[key] = [val[:-1],mult]  
    
stocks<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17870257037943696, 'fraction_numerical': 0.05263157894736842, 'mean_word_length': 5.014705882352941, 'pattern_counts': {'":': 10, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '270622', 'license': 'MIT', 'n_tokens_mistral': 339, 'n_tokens_neox': 308, 'n_words': 66, 'path': 'Chapter01/.ipynb_checkpoints/Exercise 1.07-checkpoint.ipynb', 'repo_name': 'arifmudi/The-Data-Wrangling-Workshop', 'size': '817'}