<garvit244>06_1.py
def convert( s, numRows):
    if numRows == 1:
        return s
    
    result = ["" for _ in range(numRows)]
    row, down = 0, 1
    for char in s:
        result[row] += char
    
        if row == numRows - 1:
            down = 0
        if row == 0:
            down = 1
    
        if down:
            row += 1
        else:
            row -= 1
    final_string = ""
    for value in result:
        final_string += value
    return final_string
def sample_funcname ( var_0 , var_1 ) :
    if var_1 == 1 :
        return var_0
    var_6 = [ "" for var_4 in range ( var_1 ) ]
    var_8 , var_9 = 0 , 1
    for var_10 in var_0 :
        var_6 [ var_8 ] += var_10
        if var_8 == var_1 - 1 :
            var_9 = 0
        if var_8 == 0 :
            var_9 = 1
        if var_9 :
            var_8 += 1
        else :
            var_8 -= 1
    var_11 = ""
    for var_12 in var_6 :
        var_11 += var_12
    return var_11
