From cc6da701e218c4b0ce7732250113c44ef30fb763 Mon Sep 17 00:00:00 2001 From: s45158 Date: Sat, 25 Nov 2017 13:22:57 +0100 Subject: [PATCH] done --- labs02/task11.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/labs02/task11.py b/labs02/task11.py index 7d36767..155c5a3 100644 --- a/labs02/task11.py +++ b/labs02/task11.py @@ -9,7 +9,13 @@ Oba napisy będą składać się wyłacznie z małych liter. """ def common_chars(string1, string2): - pass + txt1 = string1.replace(' ','') + txt2 = string2.replace(' ','') + + return list(''.join(sorted(set(txt1) & set(txt2)))) + + + def tests(f):