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):