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