Given a dict like the one below how do I "explode" the keys to create a new dict with the keys split out? Each key should be split on " n ".
original_dict = {"AB n DC": [12, 13], "JH n UY": [22, 1]}
new_dict = {"AB": [12, 13], "DC": [12, 13], "JH": [22, 1], "UY":[22,1]}
>Solution :
new_dict = {k: v for orig_k, v in original_dict.items() for k in orig_k.split(' n ')}