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!
9.4m questions
12.2m answers