forked from tdwojak/Python2017
task11 passed
This commit is contained in:
parent
787b15d0a4
commit
3f9c87d72a
@ -9,7 +9,20 @@ Oba napisy będą składać się wyłacznie z małych liter.
|
||||
"""
|
||||
|
||||
def common_chars(string1, string2):
|
||||
pass
|
||||
lista1 = list(string1)
|
||||
lista2 =list(string2)
|
||||
unique_val = set()
|
||||
for i in lista1:
|
||||
for x in lista2:
|
||||
if i == x:
|
||||
if i.isspace():
|
||||
pass
|
||||
else:
|
||||
unique_val.add(i)
|
||||
lista = list(unique_val)
|
||||
lista.sort()
|
||||
return(lista)
|
||||
|
||||
|
||||
|
||||
def tests(f):
|
||||
|
Loading…
Reference in New Issue
Block a user