diff options
Diffstat (limited to 'progs/a335.py')
-rw-r--r-- | progs/a335.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a335.py b/progs/a335.py new file mode 100644 index 0000000..d6baf7d --- /dev/null +++ b/progs/a335.py @@ -0,0 +1,4 @@ +def re_arrange_tuples(test_list, ord_list):
+ temp = dict(test_list)
+ res = [(key, temp[key]) for key in ord_list]
+ return (res)
\ No newline at end of file |