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) Curly hair, very fair, please share :)Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Subash Chandran 17th October 2021 Leave a Comment