forked from tdwojak/Python2017
update test task
Signed-off-by: s45167 <krzysztof.spalinski@op.pl>
This commit is contained in:
parent
2fbb58c328
commit
84a295a7cd
@ -9,6 +9,11 @@ Oba napisy będą składać się wyłacznie z małych liter.
|
||||
"""
|
||||
|
||||
def common_chars(string1, string2):
|
||||
cc =[]
|
||||
for i in sorted(string1):
|
||||
if (i in sorted(string2)) and i!=" " and i not in cc:
|
||||
cc.append(i)
|
||||
return cc
|
||||
pass
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user