Skip to content · ⁨본문 바로가기⁩

Finish the countdown

English

Finish the countdown

The loop prints count, but nothing ever changes it — so it would never end. Add the one line that takes 1 off count, inside the loop.

A while loop keeps going for as long as its question is true. Something inside it has to move count towards 0, or the answer stays True for ever. That line is indented under the while, like the print above it.

한국어

카운트다운 완료하기

이 루프는 count를 출력하지만, 아무것도 이를 변경하지 않으므로 영원히 멈추지 않습니다. 루프 내부에서 1을 count에서 빼주는 한 줄을 추가하세요.

while 루프는 질문이 참인 동안 계속 실행됩니다. 루프 안에는 무언가가 count을 0로 향하게 해야 하며, 그렇지 않으면 답은 영구히 True에 머물게 됩니다. 그 줄은 들여쓰기되어 있으며, while 아래에 위치하고 위쪽의 print과 같이 처리됩니다.

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP