comefrom: <doocs>2075.Decode the Slanted Ciphertext_1.py
code: 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()
masked: def sample_funcname ( var_0 : str , var_1 : int ) -> str :
      var_2 = [ ]
      var_3 = len ( var_0 ) // var_1
      for var_4 in range ( var_3 ) :
          var_5 , var_6 = 0 , var_4
          while var_5 < var_1 and var_6 < var_3 :
              var_2.append ( var_0 [ var_5 * var_3 + var_6 ] )
              var_5 , var_6 = var_5 + 1 , var_6 + 1
      return ''.var_7 ( var_2 ).rstrip ( )
  