1
0
forked from tdwojak/Python2017

z1, z2, z3, z4, z5, z6, z7, z8, z9, z10, z11

This commit is contained in:
s45148 2017-11-29 00:58:00 +01:00
parent 023a824152
commit 0a0b8f8a9d

View File

@ -9,7 +9,18 @@ Oba napisy będą składać się wyłacznie z małych liter.
""" """
def common_chars(string1, string2): def common_chars(string1, string2):
pass sl = []
for i in string1:
for j in string2:
if i==j:
sl.append(i)
sly = [x for x in sl if x != ' ']
sly.sort()
slz = []
for z in sly:
if z not in slz:
slz.append(z)
return slz
def tests(f): def tests(f):