- 1

How to find common characters in n string? In python

n can be anything... 3 or 5 or 6

19th Aug 2018, 4:44 PM
Mallika Das
Mallika Das - avatar
4 Respuestas
+ 5
from functools import reduce reduce(set.intersection, map(set, strings))
19th Aug 2018, 5:03 PM
Eduardo Petry
Eduardo Petry - avatar
+ 3
I don't understand. Can you clarify?
19th Aug 2018, 4:54 PM
Eduardo Petry
Eduardo Petry - avatar
0
thank you
19th Aug 2018, 5:05 PM
Mallika Das
Mallika Das - avatar
- 1
string=["orange","apple","mango"] common character is a
19th Aug 2018, 4:59 PM
Mallika Das
Mallika Das - avatar