You have two words in the input, one per line. Compute the Levenshtein distance between them with the help of NLTK. Print the number.
Levenshtein distance
Library implementation
Report a typo
Sample Input 1:
cat
dogSample Output 1:
3Write a program in Python 3
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.