Until you type stop · stop을 입력할 때까지
Until you type stop
Read words one at a time until the word stop arrives, then report how many came before it.
Read the first word before the loop, so the condition has something to test. Inside the loop, count the word and then read the next one. When you press Run, type each word and press Enter.
stop을 입력할 때까지
단어를 하나씩 읽어서 stop이라는 단어가 도착할 때까지 기다린 후, 그 전에 들어온 단어가 몇 개였는지 보고하십시오.
루프 전에 첫 단어를 먼저 읽으세요. 그러면 조건이 테스트할 대상이 생깁니다. 루프 안에서는 단어를 세고 다음 단어를 읽습니다. 실행 버튼을 누르면 각 단어를 입력하고 Enter를 누르십시오.
Keep reading words with input() until the word is stop. Then print how many words came before stop. For the words cat, dog, stop, print 2. · input()을 사용하여 단어를 계속 읽되, 단어가 stop가 될 때까지 멈추십시오. 그런 다음 stop 이전에 나온 단어의 개수를 출력하십시오. 단어들 cat, dog, stop에 대해서는 2을 출력하십시오.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.