forked from tdwojak/Python2017
done
This commit is contained in:
parent
70554cf013
commit
66007e3252
@ -9,7 +9,14 @@ Oba napisy będą składać się wyłacznie z małych liter.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def common_chars(string1, string2):
|
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):
|
def tests(f):
|
||||||
|
Loading…
Reference in New Issue
Block a user