1#Installation
2pip install fuzzywuzzy
3
4#import
5from fuzzywuzzy import fuzz
6
7# Compare whole 2 strings
8fuzz.ratio("Catherine M Gitau","Catherine Gitau")
9#91
10
11# Compares only untill the length of smallest string,
12# In below case strings that will be compared are, "Catherine M. Gi" & "Catherine Gitau"
13fuzz.partial_ratio("Catherine M. Gitau","Catherine Gitau")
14#100