Answers for "how to find common characters in two strings in 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
0

find common string in two strings python

for i in str1: 
        if i in str2:
      			return "TRUE"
Posted by: Guest on November-22-2020

Code answers related to "how to find common characters in two strings in python"

Python Answers by Framework

Browse Popular Code Answers by Language