From 77ffeebaea3352e488d3e7d0c0c9a8812b2d7064 Mon Sep 17 00:00:00 2001 From: s45147 Date: Sun, 19 Nov 2017 15:29:24 +0100 Subject: [PATCH] done --- labs02/task03.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/labs02/task03.py b/labs02/task03.py index a1c3a85..b5e2e5f 100644 --- a/labs02/task03.py +++ b/labs02/task03.py @@ -13,7 +13,12 @@ jak 'set', która przechowuje elementy bez powtórzeń.) def oov(text, vocab): - pass + list_of_words = [] + text_splitted = text.split(' ') + for word in text_splitted: + if word.lower() not in vocab: + list_of_words.append(word) + return set(list_of_words)