summaryrefslogtreecommitdiff
path: root/progs/a365.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a365.py')
-rw-r--r--progs/a365.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/a365.py b/progs/a365.py
new file mode 100644
index 0000000..b7866e8
--- /dev/null
+++ b/progs/a365.py
@@ -0,0 +1,3 @@
+def remove_empty(tuple1): #L = [(), (), ('',), ('a', 'b'), ('a', 'b', 'c'), ('d')]
+ tuple1 = [t for t in tuple1 if t]
+ return tuple1 \ No newline at end of file