You are viewing a single comment's thread. Return to all comments →
26 iterations for small string would be inefficient. It could be done simply - any(map(lambda x: x in s2, s1))
Seems like cookies are disabled on this browser, please enable them to open this website
Two Strings
You are viewing a single comment's thread. Return to all comments →
26 iterations for small string would be inefficient. It could be done simply - any(map(lambda x: x in s2, s1))