<doocs>2075.Decode the Slanted Ciphertext_1.py
def decodeCiphertext( encodedText: str, rows: int) -> str:
    ans = []
    cols = len(encodedText) // rows
    for j in range(cols):
        x, y = 0, j
        while x < rows and y < cols:
            ans.append(encodedText[x * cols + y])
            x, y = x + 1, y + 1
    return ''.join(ans).rstrip()
def sample_funcname ( var_0 : str , var_2 : int ) -> str :
    var_4 = [ ]
    var_6 = len ( var_0 ) // var_2
    for var_8 in range ( var_6 ) :
        var_10 , var_11 = 0 , var_8
        while var_10 < var_2 and var_11 < var_6 :
            var_4.append ( var_0 [ var_10 * var_6 + var_11 ] )
            var_10 , var_11 = var_10 + 1 , var_11 + 1
    return ''.var_15 ( var_4 ).rstrip ( )
