<doocs>1961.Check If String Is a Prefix of Array_1.py
def isPrefixString( s: str, words: List[str]) -> bool:
    t = 0
    for i, w in enumerate(words):
        t += len(w)
        if len(s) == t:
            return ''.join(words[: i + 1]) == s
    return False
def sample_funcname ( var_0 : str , var_2 : List [ str ] ) -> bool :
    var_6 = 0
    for var_8 , var_9 in enumerate ( var_2 ) :
        var_6 += len ( var_9 )
        if len ( var_0 ) == var_6 :
            return ''.join ( var_2 [ : var_8 + 1 ] ) == var_0
    return False
