<doocs>1392.Longest Happy Prefix_1.py
def longestPrefix( s: str) -> str:
    for i in range(1, len(s)):
        if s[:-i] == s[i:]:
            return s[i:]
    return ''
def sample_funcname ( var_0 : str ) -> str :
    for var_5 in range ( 1 , len ( var_0 ) ) :
        if var_0 [ : - var_5 ] == var_0 [ var_5 : ] :
            return var_0 [ var_5 : ]
    return ''
