If I have some dictionary like:
d = {'keyname': ['foo', 'bar']}
and I don't know the key name how I would unpack this dict in two variables?
This doesn't work:
k,v = d
I could iterate over this dict like:
for k, v in d.items():
# k and v are now available
But I think this is not the "pythonic" way enough
How can I do this without using a for-loop?
"d"
can always have only ONE key:val
pair.