Is there a pythonic way to assign the values of a dictionary to its keys, in order to convert the dictionary entries into variables? I tried this out:
>&g
you can use operator.itemgetter
>>> from operator import itemgetter >>> d = {'a':1, 'b':2} >>> a, b = itemgetter('a', 'b')(d) >>> a 1 >>> b 2