Until you type stop · Hasta que escribas 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.
Hasta que escribas stop
Lee las palabras una a una hasta que llegue la palabra stop, e informa cuántas vinieron antes.
Lee la primera palabra antes del bucle, para que la condición tenga algo qué probar. Dentro del bucle, cuenta la palabra y luego lee la siguiente. Al presionar Ejecutar, escribe cada palabra y presiona Enter.
Keep reading words with input() until the word is stop. Then print how many words came before · antes stop. For the words cat, dog, stop, print 2. · Continúa leyendo palabras con input() hasta que la palabra sea stop. Luego imprime cuántas palabras vinieron antes de stop. Para las palabras cat, dog, stop, imprime 2.
Click Run to see the output here. · Haz clic en Ejecutar para ver la salida aquí.