summaryrefslogtreecommitdiff
path: root/progs/a139.py
blob: 9c0e09ce4bd78f100c371b51adac51e4a8e38ba6 (plain)
1
2
3
def tuple_to_dict(test_tup):
  res = dict(test_tup[idx : idx + 2] for idx in range(0, len(test_tup), 2))
  return (res)