Answers for "find common words in string python"

0

how to find common characters in two strings in python

#find common elements present in 2 strings
str1 = 'abcdef'
str2 = 'abcdf'
com_str = ''.join(set(s1).intersection(s2))
print(com_str)
Posted by: Guest on August-13-2021

Code answers related to "find common words in string python"

Python Answers by Framework

Browse Popular Code Answers by Language