comefrom: <doocs>1324.Print Words Vertically_1.py
code: def printVertically( s: str) -> List[str]:
      words = s.split()
      m, n = len(words), max(len(word) for word in words)
      ans = []
      for j in range(n):
          t = []
          for i in range(m):
              word = words[i]
              t.append(word[j] if j < len(word) else ' ')
          ans.append(''.join(t).rstrip())
      return ans
masked: def sample_funcname ( var_0 : str ) -> List [ str ] :
      var_1 = var_0.split ( )
      var_2 , var_4 = len ( var_1 ) , max ( len ( var_3 ) for var_3 in var_1 )
      var_5 = [ ]
      for var_6 in range ( var_4 ) :
          var_7 = [ ]
          for var_8 in range ( var_2 ) :
              var_3 = var_1 [ var_8 ]
              var_7.append ( var_3 [ var_6 ] if var_6 < len ( var_3 ) else '' )
          var_5.append ( ''.var_9 ( var_7 ).rstrip ( ) )
      return var_5
  