Until you type stop · Hingga Anda mengetik 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.
Hingga Anda mengetik stop
Baca kata-kata satu per satu hingga kata stop muncul, lalu laporkan berapa banyak yang datang sebelumnya.
Baca kata pertama sebelum perulangan, agar kondisinya memiliki sesuatu untuk diuji. Di dalam perulangan, hitung kata tersebut dan kemudian baca kata berikutnya. Saat Anda menekan Run, ketik setiap kata dan tekan 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. · Terus membaca kata-kata dengan input() hingga kata adalah stop. Lalu cetak berapa banyak kata datang sebelum stop. Untuk kata-kata cat, dog, stop, cetak 2.
Click Run to see the output here. · Klik Jalankan untuk melihat output di sini.