I want to get the key from a randomly given dict,
In [1]: d = {"unknown":1}
In [2]: d.keys()
Out[2]: dict_keys(['unknown'])
In [3]: k = [k for k in d.keys()][0]
In [4]: k
Out[4]: 'unknown'
The solution is cumbersome,
How could get it done in a succinct way?