d = {'foo': 'bar'}
(k, v), = list(d.items())
k, v
[(k, v)] = list(d.items())
k, v
k, v = list(d.items())[0]
k, v
k, v = next(iter(list(d.items())))
k, v
How to extract dictionary single key-value pair in variables