From b932a8291e464397ec4fe6198cd4c9c2394bb7c0 Mon Sep 17 00:00:00 2001 From: s45148 Date: Sun, 19 Nov 2017 15:30:55 +0100 Subject: [PATCH] z1, z3 --- labs02/task03.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/labs02/task03.py b/labs02/task03.py index a1c3a85..2edea29 100644 --- a/labs02/task03.py +++ b/labs02/task03.py @@ -13,8 +13,12 @@ jak 'set', która przechowuje elementy bez powtórzeń.) def oov(text, vocab): - pass - + VerifiedList = [] + TextList = text.split(' ') + for TextListElement in TextList: + if TextListElement not in vocab: + VerifiedList.append(TextListElement) + return VerifiedList def tests(f):