I have a list of one-item dicts (parsed from JSON) that looks like this:
lst = [
{"key_0": "value_0"},
{"key_1": "value_1"},
{"key_2": "value_2"},
...
{"key_n": "value_n"}
]
what would be the most elegant way to retrieve a key from the list's n-element not knowing this key?
I came up with:
[*lst[n].keys()][0]
but it looks somewhat ugly to me.