The pythonic way to convert all elements of a list to keys of a dictionary is as follows:
>>> aa=[11,12,13]>>> bb={v:'hello' for v in aa}>>> bb{11: 'hello', 12: 'hello', 13: 'hello'}>>> bb[12]'hello'