summaryrefslogtreecommitdiff
path: root/progs/a139.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a139.py')
-rw-r--r--progs/a139.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/a139.py b/progs/a139.py
new file mode 100644
index 0000000..9c0e09c
--- /dev/null
+++ b/progs/a139.py
@@ -0,0 +1,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) \ No newline at end of file