1
0
Fork 0

zrobione zad 11

This commit is contained in:
Justyna Adamczyk 2018-05-31 19:08:51 +00:00
parent 74f9c6a5e5
commit 58cef93540
1 changed files with 7 additions and 1 deletions

View File

@ -8,8 +8,14 @@ uporządkowaną listę wspólnych liter z lańcuchów string1 i string2.
Oba napisy będą składać się wyłacznie z małych liter.
"""
def common_chars(string1, string2):
pass
s=string1.replace(' ','')
t=string2.replace(' ','')
s=set(s)
t=set(t)
zwracam = sorted(s & t)
return list(''.join(zwracam))
def tests(f):