On Sat, Mar 19, 2016 at 8:33 AM, Fillmore <fillmore_rem...@hotmail.com> wrote: > what am I missing? I don't want to iterate over the dictionary. > I know that there's only one element and I need to retrieve the key
You could try: >>> next(iter(d)) Is that clean enough for usage? ChrisA -- https://mail.python.org/mailman/listinfo/python-list