I have this dictionary named files I was looking for a way to get the first key without looping I read some where to convert to list and use the list to get the value from the dictionary,
files = {"file_1": "<PDF object>"}
I did this name = list(files)
expected result [file_1]
but I made a typo and did this instead;
name, = list(files) notice the comma in front of the name variable
result = file_1
What exactly does the , do I have searched for this I am yet to get an answer is this in the official python documentation?