railpunk funcs

fukurou

the supreme coder
ADMIN
replacer mapper for ports, translations
Python:
def word_diff(str1, str2):
    w1 = str1.split()
    w2 = str2.split()
    limit = min(len(w1), len(w2))
    diffs = []

    for i in range(limit):
        if w1[i] != w2[i]:
            diffs.append((w1[i], w2[i]))

    return diffs
 
Top