Answers for "count how many characters in the same position are eqial in both strings"

CSS
0

count how many characters in the same position are eqial in both strings

sum(1 if c1 == c2 else 0 for c1, c2 in zip(string1, string2))
Posted by: Guest on September-24-2020
0

count how many characters in the same position are eqial in both strings

sum(c1 == c2 for c1, c2 in zip(string1, string2))
Posted by: Guest on September-24-2020

Code answers related to "count how many characters in the same position are eqial in both strings"

Browse Popular Code Answers by Language