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