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