From 962f5156b57c71931b62ee2bf5ee553227ca20bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Maliszewski?= Date: Wed, 13 Jun 2018 17:33:16 +0000 Subject: [PATCH] Zaktualizuj 'labs02/task03.py' --- labs02/task03.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/labs02/task03.py b/labs02/task03.py index a1c3a85..3a69edf 100644 --- a/labs02/task03.py +++ b/labs02/task03.py @@ -12,8 +12,15 @@ jak 'set', która przechowuje elementy bez powtórzeń.) """ +from sets import Set + def oov(text, vocab): - pass + rozdzielenie=text.split(' ') + slowo=set() + + slowo=(slowo for slowo in rozdzielenie if slowo not in vocab) + + return slowo