From 66007e325294261d86941c4b3170b36a62ea1756 Mon Sep 17 00:00:00 2001 From: s45147 Date: Mon, 20 Nov 2017 10:17:48 +0100 Subject: [PATCH] done --- labs02/task11.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/labs02/task11.py b/labs02/task11.py index 7d36767..cda993a 100644 --- a/labs02/task11.py +++ b/labs02/task11.py @@ -9,8 +9,15 @@ Oba napisy będą składać się wyłacznie z małych liter. """ def common_chars(string1, string2): - pass + wspolne = [] + for z1 in string1: + for z2 in string2: + if z1 == z2: + wspolne.append(z1) + return wspolne.sort() + + def tests(f): inputs = [["this is a string", "ala ma kota"]]