Write a loop that inputs words until the user enters stop. After each input, the program should number each entry and print I. 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.

Respuesta :

Answer:

Written in Python:

userinp = input("Input: ")

count = 0

while not userinp == "stop":

print("You entered "+str(userinp))

count = count + 1

userinp = input("Input: ")

print("All done, "+str(count)+" words entered")

Explanation:

I've added the full program as an attachment where I use comments to explain difficult lines

Ver imagen MrRoyal