initial commit

This commit is contained in:
2025-02-17 15:12:35 +01:00
commit 29e1665917
5 changed files with 285 additions and 0 deletions

10
src/similarity.py Normal file
View File

@@ -0,0 +1,10 @@
# calculate similarity between two strings
from difflib import SequenceMatcher
def similarity(a, b):
return SequenceMatcher(None, a, b).ratio()
if __name__ == "__main__":
print(similarity("Dr. Stone", "Dr. STONE"))