0

Как вывести одинаковые символы из двух строк?

23rd Nov 2017, 12:36 PM
denos
denos - avatar
7 odpowiedzi
+ 1
print(set(s1)&set(s2))
23rd Nov 2017, 2:33 PM
yuri
+ 1
If I understand you, maybe you can check that code https://code.sololearn.com/chcBw0PBt3b7/#py
23rd Nov 2017, 4:52 PM
Daniel
Daniel - avatar
+ 1
Yes, it is. Thank you)
23rd Nov 2017, 4:54 PM
denos
denos - avatar
+ 1
Excellent ;-)
23rd Nov 2017, 4:56 PM
Daniel
Daniel - avatar
0
maybe if you write in english too, you could get more answers
23rd Nov 2017, 2:11 PM
Daniel
Daniel - avatar
0
How do I output the same characters of two strings?
23rd Nov 2017, 2:17 PM
denos
denos - avatar
0
please, write an example to understand better
23rd Nov 2017, 2:31 PM
Daniel
Daniel - avatar