summaryrefslogtreecommitdiff
path: root/progs/a933.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a933.py')
-rw-r--r--progs/a933.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a933.py b/progs/a933.py
new file mode 100644
index 0000000..930e0ad
--- /dev/null
+++ b/progs/a933.py
@@ -0,0 +1,6 @@
+def remove_words(list1, charlist):
+ new_list = []
+ for line in list1:
+ new_words = ' '.join([word for word in line.split() if not any([phrase in word for phrase in charlist])])
+ new_list.append(new_words)
+ return new_list \ No newline at end of file