comefrom: <doocs>0038.Count and Say_1.py
code: def countAndSay( n: int) -> str:
      s = '1'
      for _ in range(n - 1):
          i = 0
          t = []
          while i < len(s):
              j = i
              while j < len(s) and s[j] == s[i]:
                  j += 1
              t.append(str(j - i))
              t.append(str(s[i]))
              i = j
          s = ''.join(t)
      return s
masked: def sample_funcname ( var_0 : int ) -> str :
      var_4 = '1'
      for var_7 in range ( var_0 - 1 ) :
          var_9 = 0
          var_10 = [ ]
          while var_9 < len ( var_4 ) :
              var_12 = var_9
              while var_12 < len ( var_4 ) and var_4 [ var_12 ] == var_4 [ var_9 ] :
                  var_12 += 1
              var_10.append ( str ( var_12 - var_9 ) )
              var_10.append ( str ( var_4 [ var_9 ] ) )
              var_9 = var_12
          var_4 = ''.join ( var_10 )
      return var_4
  