Friday, 30 August 2013

how to find number of characters matches in two strings?

how to find number of characters matches in two strings?

How can I do this in python?
first string = GOOD MORNING
second string = GOOD BYE
After 5 characters there is no match
in C, it can be done as: length = strspn(str1,str2);
Thanks in advance...

No comments:

Post a Comment