how to transform a tuple into a dict python code example Example: tuple to dict t = (1, 2) d = dict([t])