i = 0
while True:
word = input("Please enter the next word: ")
if word == "STOP":
break
i += 1
print("#"+str(i)+": You entered "+word)
print("All done. "+str(i)+" words entered.")
I hope this helps!
6.5m questions
8.6m answers