num = 0
while True:
word = input('Please enter the next word: ')
if word == 'STOP':
break
else:
num += 1
print('#{}: You entered {}'.format(num, word))
if num == 1:
print( 'All done. 1 word entered.')
else:
print( 'All done. {} words entered.'.format(num))
Comments
Leave a comment