Count down in twos · 두 개씩 세어 내리기
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
This one builds on a lesson you haven't finished yet. Do that lesson first: · 이 과제는 아직 완료하지 않은 수업에 기반합니다. 먼저 해당 수업을 완료하세요:
Python Basics · While loops →
Count down in twos
n starts at 10. Print 10, 8, 6, 4, 2 using a while loop.
The step does not have to be 1. Check where it stops: from 10 taking 2 each time, the value after 2 is 0, and 0 > 0 is false — so 0 is never printed.
n starts at 10. Print 10, 8, 6, 4, 2 using a while loop. · n는 10에서 시작합니다. 10, 8, 6, 4, 2을 출력하기 위해 while 루프를 사용합니다.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.