I am coding for the problem in which we got to count the number of common characters in two strings. Main part of the count goes like this
for(i=0; i < st
Python Code:
>>>s1='abbc' >>>s2='abde' >>>p=list(set(s1).intersection(set(s2))) >>print(p) ['a','b']
Hope this helps you, Happy Coding!