forked from tdwojak/Python2018
zrobiono zadanie 11
This commit is contained in:
parent
7f4577f327
commit
1a4de39386
@ -9,7 +9,12 @@ Oba napisy będą składać się wyłacznie z małych liter.
|
||||
"""
|
||||
|
||||
def common_chars(string1, string2):
|
||||
pass
|
||||
s1 = string1.replace(' ','')
|
||||
s2 = string2.replace(' ','')
|
||||
s1=set(s1)
|
||||
s2=set(s2)
|
||||
common = s1 & s2
|
||||
return(sorted(list(common)))
|
||||
|
||||
|
||||
def tests(f):
|
||||
|
Loading…
Reference in New Issue
Block a user