subscripting Python 3 dicts/getting the only value in a Python 3 dict
Bernardo Sulzbach
mafagafogigante at gmail.com
Tue Jan 12 12:18:01 EST 2016
Intentions aside, next(iter(...)) seems the most pythonic you can get
about this anyway.
Just in case you happen not to need the dictionary anymore,
d.popitem()[1] does the trick.
More information about the Python-list
mailing list