summaryrefslogtreecommitdiff
path: root/progs/a190.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a190.py')
-rw-r--r--progs/a190.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a190.py b/progs/a190.py
new file mode 100644
index 0000000..ab9ad59
--- /dev/null
+++ b/progs/a190.py
@@ -0,0 +1,6 @@
+def remove_nested(test_tup):
+ res = tuple()
+ for count, ele in enumerate(test_tup):
+ if not isinstance(ele, tuple):
+ res = res + (ele, )
+ return (res) \ No newline at end of file