I have only a single key-value pair in a dictionary. I want to assign key to one variable
and it\'s value to another variable. I have tried with below ways but I am getting
d.keys() will actually return list of all keys and d.values() return list of all values, since you have a single key:value pair in d you will be accessing the first element in list of keys and values