Count the letters · 문자 세기
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
Count the letters
word is "banana". Use a for loop to count its letters into n. Do not use len.
A counter lives outside the loop (so it is not reset every turn) and grows inside it. That shape — set up, loop, use — comes back constantly.
한국어
문자 세기
word는 "banana"입니다. for 루프를 사용하여 문자를 n에 세세요. len은 사용하지 마세요.
카운터는 루프 바깥에 위치하여(매 iteration마다 초기화되지 않음) 루프 안에서 증가합니다. '설정, 루프, 사용'이라는 형태는 자주 반복됩니다.
word is "banana". Use a for loop to count its letters into n. Do not use len. · word는 "banana"입니다. for 루프를 사용하여 문자를 n에 세세요. len은 사용하지 마세요.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.