DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSS
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
)
)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#count
#characters
#position
#eqial
#strings
ADD COMMENT
Topic
COMMENT
Name
9+2 =
Submit