Skip to content

CSS code snippet – 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))
See also  CSS code snippet - How to write in html?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.