코드
def solution(s) :
answer = [0, 0]
while s != '1' :
num_zeros = s.count('0')
s = bin(len(s) - num_zeros)[2:]
answer[0] += 1
answer[1] += num_zeros
return answer
def solution(s) :
answer = [0, 0]
while s != '1' :
num_zeros = s.count('0')
s = bin(len(s) - num_zeros)[2:]
answer[0] += 1
answer[1] += num_zeros
return answer