Created
February 3, 2019 14:35
-
-
Save bee-san/33c0a60d4dc0241ca71be1ba7bafd231 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = "a9993e364706816aba3e25717850c26c9cd0d89d" | |
b = "cb4cc28df0fdbe0ecf9d9662e294b118092a5735" | |
a = list(a) | |
b = list(b) | |
percent = 0 | |
for counter, value in enumerate(a): | |
if value == b[counter]: | |
percent = percent + 1 | |
print((percent / len(a)) * 100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment