summaryrefslogtreecommitdiff
path: root/progs/a335.py
blob: d6baf7d6d597f99ca38c8b9d38d526846634fb73 (plain)
1
2
3
4
def re_arrange_tuples(test_list, ord_list):
  temp = dict(test_list)
  res = [(key, temp[key]) for key in ord_list]
  return (res)