aboutsummaryrefslogtreecommitdiff
path: root/challenge-010/paulo-custodio/python/ch-2.py
blob: 6dd3ebe04a5d4a8b538987e0f10425884f1aec48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python3

# Challenge 010
#
# Challenge #2
# Write a script to find Jaro-Winkler distance between two strings. For more
# information check wikipedia page.

import sys
from pyjarowinkler import distance

print("{:.2f}".format(1-distance.get_jaro_distance(*sys.argv[1:3])))