Skip to content

Instantly share code, notes, and snippets.

@bee-san
Created February 3, 2019 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bee-san/33c0a60d4dc0241ca71be1ba7bafd231 to your computer and use it in GitHub Desktop.
Save bee-san/33c0a60d4dc0241ca71be1ba7bafd231 to your computer and use it in GitHub Desktop.
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