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
key = list(foo.keys())[0] value = foo[key]