Add up one to five · 1부터 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 · Counting loops →
English
Add up one to five
Use a for loop to add 1 + 2 + 3 + 4 + 5 into total.
range(1, 6) gives 1 to 5: it starts at the first number and stops before the second. Add each one onto a total that starts at 0.
한국어
1부터 5까지 더하기
for 루프를 사용하여 1 + 2 + 3 + 4 + 5를 total에 더하세요.
range(1, 6)는 1을 5에 제공합니다: 첫 번째 숫자에서 시작하여 두 번째 숫자 직전에서 멈춥니다. 0으로 시작되는 합계에 하나씩 더하세요.
Use a for loop to add 1 + 2 + 3 + 4 + 5 into total. · for 루프를 사용하여 1 + 2 + 3 + 4 + 5를 total에 더하세요.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.