Python에서 count를 할 때 전역변수를 사용한다고 하면 global keyword를 사용해야 한다.hanoi tower에서 2^n-1 이 아니라 직접 count 할 수는 없을까 생각했다. 코드는 아래와 같다.list(map(int, input()))문자열의 경우