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_1 = '1'
      for var_2 in range ( var_0 - 1 ) :
          var_3 = 0
          var_4 = [ ]
          while var_3 < len ( var_1 ) :
              var_5 = var_3
              while var_5 < len ( var_1 ) and var_1 [ var_5 ] == var_1 [ var_3 ] :
                  var_5 += 1
              var_4.append ( str ( var_5 - var_3 ) )
              var_4.append ( str ( var_1 [ var_3 ] ) )
              var_3 = var_5
          var_1 = ''.join ( var_4 )
      return var_1
  