while (0<=(number-count-1)) and (number+count-1)<=(len(switch)-1):
count가 증가하다가 위에 while문에 막혀서
else: if switch[number-1]==1: switch[number-1]=0 break else: switch[number-1]=1 break
이 부분이 아예 실행되지 않을 수도 있어서 그런걸까요?

sun990422 2년 전
위 코드와 아래 코드가 같다고 생각하는데 뭐가 다른거고 왜 틀리는지 모르겠습니다.