157k views
4 votes
4.5 code practice edhesive

User Eir
by
5.0k points

1 Answer

3 votes

Answer:

n= input("Please enter the next word: ")

x=1

while(n != "STOP"):

print("#" + str(x) + ": You entered " + n)

x=x+1

n= input("Please enter the next word: ")

print("All done. " + str(x-1) + " words entered.")

Step-by-step explanation:

User Sepehr Behroozi
by
4.7k points