asked 5.8k views
4 votes
4.5 code need help we are not to the stage .format Teacher does not want that

4.5 code need help we are not to the stage .format Teacher does not want that-example-1

1 Answer

6 votes

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!

answered
User Jonnell
by
8.3k points

No related questions found