From 84a295a7cd755308cd577acb60fda2213fb16a71 Mon Sep 17 00:00:00 2001 From: s45167 Date: Thu, 30 Nov 2017 22:06:02 +0100 Subject: [PATCH] update test task Signed-off-by: s45167 --- labs02/task11.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/labs02/task11.py b/labs02/task11.py index 7d36767..21954b7 100644 --- a/labs02/task11.py +++ b/labs02/task11.py @@ -9,6 +9,11 @@ Oba napisy będą składać się wyłacznie z małych liter. """ def common_chars(string1, string2): + cc =[] + for i in sorted(string1): + if (i in sorted(string2)) and i!=" " and i not in cc: + cc.append(i) + return cc pass