I am trying to "flatten" a dictionary that looks like this:
d = {
"USA": ["US", "United States"],
"SGP": ["JP", "Japan", "Singapore"]
}
The format I would like to get it into is this:
new_d = {
"United States": "USA",
"US": "USA",
"JP": "SGP",
"Japan": "SGP",
"Singapore": "SGP"
}