<doocs>1768.Merge Strings Alternately_1.py
def mergeAlternately( word1: str, word2: str) -> str:
    i, m, n = 0, len(word1), len(word2)
    res = []
    while i < m or i < n:
        if i < m:
            res.append(word1[i])
        if i < n:
            res.append(word2[i])
        i += 1
    return ''.join(res)
def sample_funcname ( var_0 : str , var_2 : str ) -> str :
    var_4 , var_6 , var_7 = 0 , len ( var_0 ) , len ( var_2 )
    var_8 = [ ]
    while var_4 < var_6 or var_4 < var_7 :
        if var_4 < var_6 :
            var_8.append ( var_0 [ var_4 ] )
        if var_4 < var_7 :
            var_8.append ( var_2 [ var_4 ] )
        var_4 += 1
    return ''.join ( var_8 )
