142k views
2 votes
Write a loop that inputs words until the user enters STOP. After each input, the program should number each entry and print in this format:

#1: You entered _____
When STOP is entered, the total number of words entered should be printed in this format:

All done. __ words entered.

Sample Run
Please enter the next word: cat
#1: You entered cat
Please enter the next word: iguana
#2: You entered iguana
Please enter the next word: zebra
#3: You entered zebra
Please enter the next word: dolphin
#4: You entered dolphin
Please enter the next word: STOP
All done. 4 words entered.

IN PYTHON PLEASEEE

1 Answer

4 votes

I hope this helps you.

Write a loop that inputs words until the user enters STOP. After each input, the program-example-1
User Daniil Shevelev
by
4.9k points