comefrom: <garvit244>38_1.py
code: def countAndSay( n):
      if n == 1:
          return "1"
      new_num = ""
      count_iter = 1
      num = "1"
      
      while count_iter < n:  
          index_i, index_j = 0, 0
          count, new_num = 0, ""
      
          while index_j < len(num):
              if num[index_i] != num[index_j]:
                  new_num += str(count) + str(num[index_i])
                  count = 0
                  index_i = index_j
              else:
                  count += 1
                  index_j += 1
      
          if count > 0:
              new_num += str(count) + str(num[index_i])
          num = new_num
          count_iter += 1
      
      return new_num
masked: def sample_funcname ( var_0 ) :
      if var_0 == 1 :
          return "1"
      var_4 = ""
      var_5 = 1
      var_6 = "1"
      while var_5 < var_0 :
          var_8 , var_9 = 0 , 0
          var_10 , var_4 = 0 , ""
          while var_9 < len ( var_6 ) :
              if var_6 [ var_8 ] != var_6 [ var_9 ] :
                  var_4 += str ( var_10 ) + str ( var_6 [ var_8 ] )
                  var_10 = 0
                  var_8 = var_9
              else :
                  var_10 += 1
                  var_9 += 1
          if var_10 > 0 :
              var_4 += str ( var_10 ) + str ( var_6 [ var_8 ] )
          var_6 = var_4
          var_5 += 1
      return var_4
  