Mubashir is not good in python programming. By mistake, he swapped keys and data values in the dictionary.
Given a dictionary, return a dictionary with the original values and the list of keys. See below example for a better understanding:
dict = {
"Mubashir": "Name",
"31": "Age",
"Male": "Sex",
"Pilot": "Job",
"Matt": "Name",
"40": "Age",
"Programmer": "Job"
}
dict = {
"Name": ["Mubashir", "Matt"],
"Age": ["31", "40"],
"Sex": ["Male"],
"Job": ["Pilot", "Programmer"]
}
N/A