def percent_diff(a, b):
    try:
        return 100*float(max(len(a), len(b))) / levenshtein_distance(a, b)
    except ZeroDivisionError:
        if len(a)==len(b): return 0
        else: return 100
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/formats/utils/string_utils.py/percent_diff/swapped operands of `/`