Fuzzy String Ratio

from fuzzywuzzy import fuzz
print(fuzz.ratio("this is a test", "this is a test!"))
97
print(fuzz.ratio("this is a cup", "this is a world cup"))
81