<doocs>1554.Strings Differ by One Character_1.py
def differByOne( dict: List[str]) -> bool:
    s = set()
    for word in dict:
        for i in range(len(word)):
            t = word[:i] + "*" + word[i + 1 :]
            if t in s:
                return True
            s.add(t)
    return False
def sample_funcname ( var_0 : List [ str ] ) -> bool :
    var_5 = set ( )
    for var_6 in var_0 :
        for var_9 in range ( len ( var_6 ) ) :
            var_12 = var_6 [ : var_9 ] + "*" + var_6 [ var_9 + 1 : ]
            if var_12 in var_5 :
                return True
            var_5.add ( var_12 )
    return False
