Calculating String Similarity in Python

Dario Radečić
Towards Data Science
7 min readOct 30, 2019

--

Comparing strings in any way, shape or form is not a trivial task. Unless they are exactly equal, then the comparison is easy. But most of the time that won’t be the case — most likely you want to see if given strings are similar to a degree, and that’s a whole another animal.

Photo by Tomasz Frankowski on Unsplash

Let’s go deeper into this with an example. You have a webpage, and it requires some user input — let’s say for some…

--

--