From 03072b0ffff3f5ab712b7beb7f61f7be2f76cbe6 Mon Sep 17 00:00:00 2001 From: s45167 Date: Sun, 19 Nov 2017 15:34:31 +0100 Subject: [PATCH] =?UTF-8?q?Moje=20rozwi=C4=85zanie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: s45167 --- labs02/task03.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/labs02/task03.py b/labs02/task03.py index a1c3a85..0a1ed3f 100644 --- a/labs02/task03.py +++ b/labs02/task03.py @@ -11,9 +11,17 @@ litery. (OOV = out of vocabulary) (W pythonie istnieje struktura danych tak jak 'set', która przechowuje elementy bez powtórzeń.) """ +# moje rozwiązanie def oov(text, vocab): - pass + _text=text.split(' ') +# _vocab=vocab.split(' ') + wynik=[] + for i in _text: + if i not in vocab: + wynik.append(i) + return wynik +#pass