Code Signal: Intro=49/60
습관중독
def lineEncoding(s): A = [] j = 0 for i in range(len(s)): tot = 0 print("while 전",i,j,s[i],s[j]) #if j == len(s): # continue while s[i] == s[j]: if s[i] == s[j]: tot += 1 #print("while안",i,j,s[i],s[j],tot) j += 1 #print("return 직전",i,j,s[i],s[j],tot) #print("append 직전",i,j,s[i],s[j],tot) print(tot) if tot != 0: A.append(str(tot)+s[i]) print(A,i,j) return A s = "aabbbc" lineEncoding(s) # "aabbbc"..