I have a list of words
list = ['car', 'animal', 'house', 'animation']
and I want to compare every list item with a string str1
and the output should be the most similar word. Example: If str1
would be anlmal
then animal
is the most similar word. How can I do this in python? Usually the words I have in my list are good distinguishable from each other.