<doocs>1698.Number of Distinct Substrings in a String_1.py
def countDistinct( s: str) -> int:
    n = len(s)
    return len({s[i:j] for i in range(n) for j in range(i + 1, n + 1)})
def sample_funcname ( var_0 : str ) -> int :
    var_4 = len ( var_0 )
    return len ( { var_0 [ var_5 : var_6 ] for var_5 in range ( var_4 ) for var_6 in range ( var_5 + 1 , var_4 + 1 ) } )
