1
0
Fork 0

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
1 changed files with 12 additions and 1 deletions

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