z1, z2, z3, z4, z5, z6, z7, z8, z9, z10, z11
This commit is contained in:
parent
023a824152
commit
0a0b8f8a9d
@ -9,7 +9,18 @@ Oba napisy będą składać się wyłacznie z małych liter.
|
||||
"""
|
||||
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user