On 4 Maj, 01:27, [EMAIL PROTECTED] wrote:
> >>> a={1:'a', 2:'b', 3:'c'}
Oops, it should obviously be:
>>> dict(zip(a.values(), a.keys()))
{'a': 1, 'c': 3, 'b': 2}
--
http://mail.python.org/mailman/listinfo/python-list
On 4 Maj, 01:27, [EMAIL PROTECTED] wrote:
> >>> a={1:'a', 2:'b', 3:'c'}
Oops, it should obviously be:
>>> dict(zip(a.values(), a.keys()))
{'a': 1, 'c': 3, 'b': 2}
--
http://mail.python.org/mailman/listinfo/python-list