I have the dictionary below:
dict_ex = {
"coffee": "3",
"milk": "7",
"list": {
"cola": "2",
"juice": "1"
}
}
I would like to reconstruct it and change it to a form of one dictionary rather than two dictionaries:
dict_ex = {
"coffee": "3",
"milk": "7",
"cola": "2",
"juice": "1"
}
I've revised this, so please check if this is right.. I would appreciate it if you could give me even a little advice.