Count up to five · 5까지 세기
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 →
English
Count up to five
Use a while loop to print 1 to 5, one per line. Start n at 1.
Counting up needs n = n + 1 instead of n - 1, and a question that stops at the right place. n <= 5 lets 5 through; n < 5 would stop one early.
한국어
5까지 세기
while 루프를 사용하여 1부터 5까지 각 줄 하나씩 출력합니다. n를 1로 시작합니다.
세기는 n = n + 1이 필요하며, n - 1 대신 appropriate한 조건이 필요합니다. n <= 5는 5을 통과하게 하지만, n < 5는 한 단계 일찍 멈출 것입니다.
Use a while loop to print 1 to 5, one per line. Start n at 1. · while 루프를 사용하여 1부터 5까지 각 줄 하나씩 출력합니다. n를 1로 시작합니다.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.